summaryrefslogtreecommitdiffstats
path: root/mga-move-pkg
diff options
context:
space:
mode:
Diffstat (limited to 'mga-move-pkg')
-rwxr-xr-xmga-move-pkg9
1 files changed, 3 insertions, 6 deletions
diff --git a/mga-move-pkg b/mga-move-pkg
index 120bb81..a3016ba 100755
--- a/mga-move-pkg
+++ b/mga-move-pkg
@@ -187,12 +187,9 @@ function movepkg()
local file
local srpm
- for file in "$srcdir/"*.rpm; do
- srpm=$(rpm -qp --qf '%{SOURCERPM}' "$file")
- if [ "$srpm" = "$srcpkg" ]; then
- echo " $(basename $file)" | tee -a "$_mailcontent"
- $dryrun mv -v -f "$file" "$destdir" >>"$_mailcommands" 2>&1
- fi
+ for file in $(urpmf --synthesis "${srcdir}/media_info/synthesis.hdlist.cz" --qf '%filename:%sourcerpm' ":$srcpkg$" | cut -d: -f1); do
+ echo " $file" | tee -a "$_mailcontent"
+ $dryrun mv -v -f "$srcdir/$file" "$destdir" >>"$_mailcommands" 2>&1
done
}