mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
Revert "makepkg: Empty/create only $pkgdir's relevant to current PKGBUILD"
This reverts commit f9423cfa5d
.
This created issue when building packages with debug info multiple times.
It could be fixed, but it confirmed my initial opinion that keeping other
directories in $pkgdirbase was wrong. Use different BUILDDIRs if you want
to build different things from a single PKGBUILD.
This commit is contained in:
parent
a1a8d067e0
commit
7624101e18
@ -2223,13 +2223,10 @@ if (( NOBUILD )); then
|
|||||||
msg "$(gettext "Sources are ready.")"
|
msg "$(gettext "Sources are ready.")"
|
||||||
exit 0 #E_OK
|
exit 0 #E_OK
|
||||||
else
|
else
|
||||||
# clean existing pkg directories
|
# clean existing pkg directory
|
||||||
if [[ -d $pkgdirbase ]]; then
|
if [[ -d $pkgdirbase ]]; then
|
||||||
msg "$(gettext "Removing existing %s directory...")" "\$pkgdir/"
|
msg "$(gettext "Removing existing %s directory...")" "\$pkgdir/"
|
||||||
for pkg in "${pkgname[@]}"; do
|
rm -rf "$pkgdirbase"
|
||||||
rm -rf "$pkgdirbase/$pkg"
|
|
||||||
done
|
|
||||||
unset pkg
|
|
||||||
fi
|
fi
|
||||||
mkdir -p "$pkgdirbase"
|
mkdir -p "$pkgdirbase"
|
||||||
chmod a-srw "$pkgdirbase"
|
chmod a-srw "$pkgdirbase"
|
||||||
|
Loading…
Reference in New Issue
Block a user