Permalink
Browse files

rpg-resolve writes versions only again, not package names

  • Loading branch information...
1 parent 64c9edb commit 7ff2ec3c4c8a14f1b93e4538a1c38e7c168d9447 @rtomayko committed Mar 22, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 rpg-resolve.sh
View
@@ -37,12 +37,13 @@ then index="$RPGINDEX/release"
else test -f "$index"
fi
-
versions=$(
rpg-package-list "$package" "$@" |
rpg-solve "$index" |
- head -$max
-) || true
+ head -$max |
+ cut -d ' ' -f 2 |
+ grep -v '^-$'
+)
# Exit with success if we found at least one version, failure otherwise.
if test -n "$versions"

0 comments on commit 7ff2ec3

Please sign in to comment.