makepkg: fix permissions on install and changelog files

The .INSTALL and .CHANGELOG files in a package retained the permissions
that they had in $startdir.   Do a chmod after copying to ensure
that the permissions are sane.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2010-05-22 22:27:14 +10:00 committed by Dan McGee
parent 52c3f871db
commit 3cd237dec3
1 changed files with 2 additions and 0 deletions

View File

@ -1013,6 +1013,7 @@ create_package() {
if [[ -n $install ]]; then
msg2 "$(gettext "Adding install script...")"
cp "$startdir/$install" .INSTALL
chmod 644 .INSTALL
comp_files="$comp_files .INSTALL"
fi
@ -1020,6 +1021,7 @@ create_package() {
if [[ -n $changelog ]]; then
msg2 "$(gettext "Adding package changelog...")"
cp "$startdir/$changelog" .CHANGELOG
chmod 644 .CHANGELOG
comp_files="$comp_files .CHANGELOG"
fi