mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-03 10:51:47 -05:00
makepkg: deprecate repackaging without a package function
File permissions are not guaranteed to stay the same on exit from fakeroot, so repackaging may result in files with different permissions. This is avoided when using a package() function (or split packages) as the packaging step is rerun. Signed-off-by: Allan McRae <allan@archlinux.org> [Dan: touched up message for translation purposes] Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
7608dd74d7
commit
6995aed9ae
@ -1820,9 +1820,14 @@ fi
|
|||||||
if (( INFAKEROOT )); then
|
if (( INFAKEROOT )); then
|
||||||
if (( ! SPLITPKG )); then
|
if (( ! SPLITPKG )); then
|
||||||
if (( ! PKGFUNC )); then
|
if (( ! PKGFUNC )); then
|
||||||
if (( BUILDFUNC && ! REPKG )); then
|
if (( ! REPKG )); then
|
||||||
run_build
|
if (( BUILDFUNC )); then
|
||||||
tidy_install
|
run_build
|
||||||
|
tidy_install
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
warning "$(gettext "Repackaging without the use of a package() function is deprecated.")"
|
||||||
|
plain "$(gettext "File permissions may not be preserved.")"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
run_package
|
run_package
|
||||||
@ -1939,8 +1944,13 @@ else
|
|||||||
if (( PKGFUNC )); then
|
if (( PKGFUNC )); then
|
||||||
run_package
|
run_package
|
||||||
tidy_install
|
tidy_install
|
||||||
elif (( ! REPKG )); then
|
else
|
||||||
tidy_install
|
if (( ! REPKG )); then
|
||||||
|
tidy_install
|
||||||
|
else
|
||||||
|
warning "$(gettext "Repackaging without the use of a package() function is deprecated.")"
|
||||||
|
plain "$(gettext "File permissions may not be preserved.")"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
create_package
|
create_package
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user