- run createrepo with --simple-md-filenames if possible
authorMichael Schroeder <mls@suse.de>
Fri, 10 Dec 2010 12:06:47 +0000 (13:06 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 10 Dec 2010 12:06:47 +0000 (13:06 +0100)
build_kiwi.sh

index 286af24..a825e16 100644 (file)
@@ -21,8 +21,12 @@ run_kiwi()
        repo="$TOPDIR/SOURCES/repos/${rc%/*}/${rc##*/}/"
         fi
         if test "$imagetype" != product ; then
-       echo "creating repodata for $repo"
-       chroot $BUILD_ROOT createrepo "$repo"
+           echo "creating repodata for $repo"
+           if chroot $BUILD_ROOT createrepo --simple-md-filenames --help >/dev/null 2>&1 ; then
+               chroot $BUILD_ROOT createrepo --simple-md-filenames "$repo"
+           else
+               chroot $BUILD_ROOT createrepo "$repo"
+           fi
         fi
     done
     # unpack root tar