diff options
author | Nicolas Vigier <boklm@mageia.org> | 2012-05-24 14:16:48 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2012-05-24 14:16:48 +0000 |
commit | fa88b31d5ee59cfbde66152300b7505eef7b574d (patch) | |
tree | b997099b4f8a5f7cdc3742aab307336d46d15efb | |
parent | 2deabff00d68ffb97f34de73a4a6b8cf69ca33d3 (diff) | |
download | release-fa88b31d5ee59cfbde66152300b7505eef7b574d.tar release-fa88b31d5ee59cfbde66152300b7505eef7b574d.tar.gz release-fa88b31d5ee59cfbde66152300b7505eef7b574d.tar.bz2 release-fa88b31d5ee59cfbde66152300b7505eef7b574d.tar.xz release-fa88b31d5ee59cfbde66152300b7505eef7b574d.zip |
use urpmf instead of looking at all src.rpm files, as suggested by pterjan
-rwxr-xr-x | src-rpm-list | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src-rpm-list b/src-rpm-list index 6406619..90f936f 100755 --- a/src-rpm-list +++ b/src-rpm-list @@ -7,10 +7,7 @@ function list_srpms() { local dir="$1" - for pkgfile in "$dir/"*.src.rpm - do - rpm -qp --qf '%{NAME}\n' "$pkgfile" - done + urpmf --distrib "$dir" --qf '%name' . } exit 1 || [ $# = 1 ] |