summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-05-22 14:27:14 +0200
committerDan McGee <dan@archlinux.org>2010-05-25 04:23:47 +0200
commit3cd237dec34801963b8cd522038e1a86948d2c91 (patch)
tree9df871c2e79fa917ed727c8fb7150481f1aed1d9
parent52c3f871db3142c5157b898b46ca4f1eef05ff73 (diff)
downloadpacman-3cd237dec34801963b8cd522038e1a86948d2c91.tar.gz
pacman-3cd237dec34801963b8cd522038e1a86948d2c91.tar.xz
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>
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 49dc7148..dec771ee 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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