Commit 8112d242 authored by Natanael Copa's avatar Natanael Copa

abuild: use deps/undeps instead or installdeps/uninstalldeps

parent 728ce0e6
...@@ -1712,17 +1712,21 @@ post_add() { ...@@ -1712,17 +1712,21 @@ post_add() {
|| die "Failed to install $1" || die "Failed to install $1"
} }
installdeps() { deps() {
local deps i local deps i
$SUDO_APK add $apk_opt_wait --repository "$abuildrepo" \ $SUDO_APK add $apk_opt_wait --repository "$abuildrepo" \
--virtual .makedepends-$pkgname \ --virtual .makedepends-$pkgname \
$makedepends $makedepends
} }
uninstalldeps (){ undeps (){
$SUDO_APK del $apk_opt_wait .makedepends-$pkgname $SUDO_APK del $apk_opt_wait .makedepends-$pkgname
} }
# compat
installdeps() { deps; }
uninstalldeps() { undeps; }
all() { all() {
if ! [ -n "$force" ]; then if ! [ -n "$force" ]; then
check_arch || return 0 check_arch || return 0
...@@ -1830,8 +1834,8 @@ usage() { ...@@ -1830,8 +1834,8 @@ usage() {
echo " srcpkg Make a source package" echo " srcpkg Make a source package"
echo " sourcecheck Check if remote source package exists upstream" echo " sourcecheck Check if remote source package exists upstream"
echo " up2date Compare target and sources dates" echo " up2date Compare target and sources dates"
echo " installdeps Install packages listed in makedepends and depends" echo " deps Install packages listed in makedepends and depends"
echo " uninstalldeps Uninstall packages listed in makedepends and depends" echo " undeps Uninstall packages listed in makedepends and depends"
echo " snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl" echo " snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl"
echo "" echo ""
exit 0 exit 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment