diff options
Diffstat (limited to 'src/oh-gencontrol')
-rw-r--r-- | src/oh-gencontrol | 6 |
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 |