[fedora-packager/el4/master] update the shell script to deal with multiple sources

Dennis Gilmore ausil at fedoraproject.org
Thu Sep 2 21:22:38 UTC 2010


commit 3e22793fa7fff23ed39eca3fdaedfa63e96c1939
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Thu Sep 2 16:20:35 2010 -0500

    update the shell script to deal with multiple sources

 fedpkg |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/fedpkg b/fedpkg
index 12a6463..4cda6ba 100644
--- a/fedpkg
+++ b/fedpkg
@@ -2,9 +2,9 @@
 
 baseurl=http://pkgs.fedoraproject.org/repo/pkgs
 pkgname=$(pwd| sed -e 's|^/.*/||g')
-tarball=$(cat  sources| sed -e 's|.*  ||g')
-md5sum=$(cat  sources| sed -e 's|  .*||g')
-
-wget $baseurl/$pkgname/$tarball/$md5sum/$tarball
-
+cat sources | while read line; do
+    tarball=$(echo  $line| sed -e 's|.* ||g')
+    md5sum=$(echo $line| sed -e 's| .*||g')
+    wget $baseurl/$pkgname/$tarball/$md5sum/$tarball
+done
 


More information about the scm-commits mailing list