avoid full local path in md5sum file
authorAdrian Schröter <adrian@suse.de>
Wed, 4 Mar 2009 14:39:00 +0000 (14:39 +0000)
committerAdrian Schröter <adrian@suse.de>
Wed, 4 Mar 2009 14:39:00 +0000 (14:39 +0000)
build

diff --git a/build b/build
index e931c9e..58c8b24 100755 (executable)
--- a/build
+++ b/build
@@ -1456,10 +1456,12 @@ for SPECFILE in "${SPECFILES[@]}" ; do
                         pushd $BUILD_ROOT/$TOPDIR/KIWI-iso > /dev/null
                         echo "creating md5 sum for iso images... "
                         ln * $BUILD_ROOT/$TOPDIR/KIWI/
-                        for i in $BUILD_ROOT/$TOPDIR/KIWI/*.iso; do
+                        pushd $BUILD_ROOT/$TOPDIR/KIWI/ > /dev/null
+                        for i in *.iso; do
                            md5sum "$i" > "$i".MD5
                         done
                        popd > /dev/null
+                       popd > /dev/null
                         ;;
                     *)
                         pushd $BUILD_ROOT/$TOPDIR/KIWI-$imgtype > /dev/null