fix
[build.git] / partial-repo.sh
index 0f0e8af..a41ced1 100755 (executable)
@@ -13,13 +13,13 @@ case "$1" in *-h*) usage ;; esac
 
 set -e 
 
-for rpms in $(find "$@" -name RPMS) ; do
-    cd $repo
+for rpms_dir in $(find "$@" -name RPMS) ; do
+    cd $rpms_dir
     cd ..
     echo "==================== Dealing with repo $(pwd)"
     mkdir -p PARTIAL-RPMS
     rsync --archive --verbose $(find RPMS -type f | egrep '/(bootcd|bootstrapfs|nodeimage|noderepo|slicerepo)-.*-.*-.*-.*rpm') PARTIAL-RPMS/
-    echo "==================== building packages index in $repo .."
+    echo "==================== building packages index in $(pwd) .."
     createrepo PARTIAL-RPMS
     echo '==================== DONE'
     cd - >& /dev/null