diff --git a/scripts/Build-Target b/scripts/Build-Target index ad80ce585..f6746a0c8 100755 --- a/scripts/Build-Target +++ b/scripts/Build-Target @@ -219,7 +219,7 @@ fi x="$file" [ $ROCKCFG_CREATE_GEM = 0 ] || x=${x%.gem} [ $ROCKCFG_CREATE_TARBZ2 = 0 ] || x=${x%.tar.bz2} - if ! grep -qx "$x" $pkglst ; then + if ! grep -qx "$x" $pkglst && ! test "$x" = packages.db ; then file="build/$ROCKCFG_ID/ROCK/pkgs/$file" echo_error "$file should not be present" \ "(now in src/invalid-files.lst)!"