Skip to content

Commit

Permalink
[backend] publisher: support config option to store binaries into sub…
Browse files Browse the repository at this point in the history
…directory.

          handle with care, since the cleanup is not working :/
          Required for openSUSE 11.4 and SLE11 maintenance updates.
  • Loading branch information
adrianschroeter committed Mar 12, 2012
1 parent 1f27f59 commit 2789356
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/backend/bs_publish
Expand Up @@ -1117,7 +1117,9 @@ sub publish {
next if $arch =~ /^\./;
next if $arch eq 'repodata' || $arch eq 'repocache' || $arch eq 'media.1' || $arch eq 'descr';
next if $arch =~ /\.repo$/;
my $r = "$extrep/$arch";
my $subdir = "";
$subdir = "/".$repotype{'packagesubdir'}->[0] if $repotype{'packagesubdir'} && $repotype{'packagesubdir'}->[0];
my $r = "$extrep$subdir/$arch";
if (-f $r) {
$r = $extrep;
my $bin = $arch;
Expand Down Expand Up @@ -1197,7 +1199,9 @@ sub publish {
$arch = '.';
$bin = $p;
}
my $r = "$extrep/$arch";
my $subdir = "";
$subdir = "/".$repotype{'packagesubdir'}->[0] if $repotype{'packagesubdir'} && $repotype{'packagesubdir'}->[0];
my $r = "$extrep$subdir/$arch";
mkdir_p($r) unless -d $r;
print " + $p\n";
if (! -l $bins{$p} && -d _) {
Expand Down

0 comments on commit 2789356

Please sign in to comment.