Skip to content

Commit

Permalink
[backend] bs_admin do not kill the repo cache when forcing a republish
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 14, 2014
1 parent e05a9e8 commit a4d901d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/backend/bs_admin
Expand Up @@ -762,7 +762,12 @@ while (@ARGV) {
my $repo = shift @ARGV;
my $repodir = "$reporoot/$project/$repo/";
if ( $arg eq "--republish-repository" ) {
unlink("$repodir/:repoinfo");
# clear the repository state to force republishing
my $repoinfo = BSUtil::retrieve("$repodir/:repoinfo", 1) || {};
if ($repoinfo->{'state'}) {
delete $repoinfo->{'state'};
BSUtil::store("$repodir/.:repoinfo", "$repodir/:repoinfo", $repoinfo);
}
}
if ( $arg eq "--unpublish-repository" ) {
# remove :repo
Expand Down

0 comments on commit a4d901d

Please sign in to comment.