- rebuild dep file if --clean is given and a remote repo is used
authorMichael Schroeder <mls@suse.de>
Fri, 28 Sep 2012 07:59:18 +0000 (09:59 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 28 Sep 2012 08:50:26 +0000 (10:50 +0200)
init_buildsystem

index a9009be..dadf506 100755 (executable)
@@ -376,6 +376,11 @@ validate_cache_file()
                rm -f $CACHE_FILE.id
                break
            fi
+           # always rebuild if we have remote repositories and --clean is given
+           if test -n "$CLEAN_BUILD" -a "$SRC" != "${SRC#*://}" ; then
+               rm -f $CACHE_FILE.id
+               break
+           fi
        done
     fi
     if ! test -f $CACHE_FILE.id ; then