mirror of
https://github.com/moparisthebest/pacman
synced 2024-10-31 15:45:03 -04:00
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:
parent
52c3f871db
commit
3cd237dec3
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user