summaryrefslogtreecommitdiffstats
path: root/src/oh-gencontrol
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-28 13:30:11 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-28 13:30:11 (EST)
commite9a04579a0c8b342b25e552bf7b486d79f6c7e66 (patch)
tree5ec1382118dc10ae0d3f8213a84ba63b34b167a9 /src/oh-gencontrol
parentdf86f19aa14170892d02f5532e827d146dd651ec (diff)
Ensure correct modes on some files.
Diffstat (limited to 'src/oh-gencontrol')
-rw-r--r--src/oh-gencontrol6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol
index 6761e7d..a1fa9d6 100644
--- a/src/oh-gencontrol
+++ b/src/oh-gencontrol
@@ -73,6 +73,7 @@ gen_control_src()
control="${control_dir}/control"
mkdir "${control_dir}"
+ chmod 644 "${control_dir}"
printf 'Package: %s\n' "${srcpkg}-src" > ${control}
printf 'Source: %s\n' "${srcpkg}" >> ${control}
@@ -81,6 +82,8 @@ gen_control_src()
# TODO: Calculate "Installed-Size".
copy_required_field Maintainer ${control}
copy_optional_field Homepage ${control}
+
+ chmod 644 ${control}
}
gen_control_bin()
@@ -96,6 +99,7 @@ gen_control_bin()
control="${control_dir}/control"
mkdir "${control_dir}"
+ chmod 644 "${control_dir}"
# Binary and source package names and version.
copy_required_field ${binpkg} Package ${control}
@@ -122,6 +126,8 @@ gen_control_bin()
copy_required_field ${binpkg} Description ${control}
copy_optional_field Homepage ${control}
+ chmod 644 ${control}
+
# Maintainer scripts.
for script in preinst postinst prerm postrm; do
if [ -L ../${binpkg}.pkg/${script} ]; then