summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-26 11:04:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-26 11:04:40 +0000
commit8112d2422a983769458b673e081c7ebdf58d1b07 (patch)
treefa421226d86015268aefd778112cb6d50c942f3a
parent728ce0e6de359073451f79984f0d2bdc40696c90 (diff)
downloadabuild-8112d2422a983769458b673e081c7ebdf58d1b07.tar.gz
abuild-8112d2422a983769458b673e081c7ebdf58d1b07.tar.bz2
abuild-8112d2422a983769458b673e081c7ebdf58d1b07.tar.xz
abuild-8112d2422a983769458b673e081c7ebdf58d1b07.zip
abuild: use deps/undeps instead or installdeps/uninstalldeps
-rwxr-xr-xabuild.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/abuild.in b/abuild.in
index aad6b23..4e67850 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1712,17 +1712,21 @@ post_add() {
|| die "Failed to install $1"
}
-installdeps() {
+deps() {
local deps i
$SUDO_APK add $apk_opt_wait --repository "$abuildrepo" \
--virtual .makedepends-$pkgname \
$makedepends
}
-uninstalldeps (){
+undeps (){
$SUDO_APK del $apk_opt_wait .makedepends-$pkgname
}
+# compat
+installdeps() { deps; }
+uninstalldeps() { undeps; }
+
all() {
if ! [ -n "$force" ]; then
check_arch || return 0
@@ -1830,8 +1834,8 @@ usage() {
echo " srcpkg Make a source package"
echo " sourcecheck Check if remote source package exists upstream"
echo " up2date Compare target and sources dates"
- echo " installdeps Install packages listed in makedepends and depends"
- echo " uninstalldeps Uninstall packages listed in makedepends and depends"
+ echo " deps Install 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 ""
exit 0