summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2012-09-28 09:59:18 +0200
committerMichael Schroeder <mls@suse.de>2012-09-28 10:50:26 +0200
commit30e559033f0e5fa96fe65212e5e316aa2283e011 (patch)
tree151f25a2b81796743028b2935f4d7149ba0e3145
parent8b346763f2dddadde2c020b085cc67159e67f12a (diff)
downloadobs-build-30e559033f0e5fa96fe65212e5e316aa2283e011.tar.gz
obs-build-30e559033f0e5fa96fe65212e5e316aa2283e011.tar.bz2
obs-build-30e559033f0e5fa96fe65212e5e316aa2283e011.zip
- rebuild dep file if --clean is given and a remote repo is used
-rwxr-xr-xinit_buildsystem5
1 files changed, 5 insertions, 0 deletions
diff --git a/init_buildsystem b/init_buildsystem
index a9009be..dadf506 100755
--- a/init_buildsystem
+++ b/init_buildsystem
@@ -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