diff options
author | Dan McGee <dan@archlinux.org> | 2011-11-01 15:55:26 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-11-05 14:14:05 +0100 |
commit | bbf00cc90ed8d1bf3bbed1f78acca71b2d624ee2 (patch) | |
tree | 755e4fb0a2b93b55716b1d531aef62e093c1e55e /db-remove | |
parent | 22dd30328ec4229321f1f96026704ff3cf1cc621 (diff) | |
download | dbscripts-bbf00cc90ed8d1bf3bbed1f78acca71b2d624ee2.tar.gz dbscripts-bbf00cc90ed8d1bf3bbed1f78acca71b2d624ee2.tar.xz |
db-repo-{add, remove}: allow specifying multiple packages
This allows invoking these commands for more than one package at a time
which is incredibly more efficient as the database doesn't need to be
locked, unpacked, modified, changed, and unlocked for every single
passed package name or file if you have more than one.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'db-remove')
-rwxr-xr-x | db-remove | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,8 +3,8 @@ . "$(dirname $0)/db-functions" . "$(dirname $0)/config" -if [ $# -ne 3 ]; then - msg "usage: $(basename $0) <repo> <arch> <pkgname|pkgbase>" +if [ $# -lt 3 ]; then + msg "usage: $(basename $0) <repo> <arch> <pkgname|pkgbase> ..." exit 1 fi |