diff options
author | Markus Meier <maekke@gentoo.org> | 2011-10-09 01:25:20 +0200 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2011-10-09 01:25:20 +0200 |
commit | 49d0de17cb97fe8b15e40a254a792d5d65c52026 (patch) | |
tree | 80835b199f080d01accdcc724c4711d43962434a /scripts/rdep | |
parent | Merge branch 'master' of git+ssh://git.overlays.gentoo.org/dev/maekke (diff) | |
download | maekke-49d0de17cb97fe8b15e40a254a792d5d65c52026.tar.gz maekke-49d0de17cb97fe8b15e40a254a792d5d65c52026.tar.bz2 maekke-49d0de17cb97fe8b15e40a254a792d5d65c52026.zip |
strip the pkg argument (leading = and version numbers)
Diffstat (limited to 'scripts/rdep')
-rwxr-xr-x | scripts/rdep | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/rdep b/scripts/rdep index cc66630..bf0688f 100755 --- a/scripts/rdep +++ b/scripts/rdep @@ -17,6 +17,8 @@ fi arch="${1}" pkg="${2}" +pkg="${pkg/=/}" +pkg="${pkg/-[0-9]*/}" if [[ ! -d ${REPODIR} ]]; then echo "your \${REPODIR}='${REPODIR}' does not exist." @@ -35,7 +37,8 @@ if [[ $(egrep "\<${arch/\~/}\>" ${REPODIR}/profiles/arch.list | wc -l) == 0 ]]; fi if [[ ! -d ${REPODIR}/${pkg} ]]; then - echo "invalid package ${pkg} - do not use a version-number" + echo "package ${pkg} not found" + exit 1 fi tmp="$(mktemp)" |