Skip to content

Commit

Permalink
[backend] move BSSolv from bs_srcserver to BSSrcrep
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Apr 13, 2016
1 parent 10fb445 commit 3959bab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions src/backend/BSSrcrep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use Digest::MD5 ();
use BSConfiguration;
use BSUtil;
use Symbol;
use BSSolv;

use strict;

Expand All @@ -38,6 +39,13 @@ my $uploaddir = "$srcrep/:upload";

our $emptysrcmd5 = 'd41d8cd98f00b204e9800998ecf8427e';

if (!defined(&BSSolv::isobscpio)) {
*BSSolv::isobscpio = sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::obscpiostat = sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::obscpioopen= sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::expandobscpio = sub {die("installed BSSolv does not support obscpio\n") };
}

#
# Source file handling
#
Expand Down
8 changes: 0 additions & 8 deletions src/backend/bs_srcserver
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ use BSXPathKeys;
use BSDB;
use BSDBIndex;

use BSSolv;

$Build::Rpm::unfilteredprereqs = 1 if defined $Build::Rpm::unfilteredprereqs;

use strict;
Expand Down Expand Up @@ -113,12 +111,6 @@ my $remote_getrev_todo;
my %remote_getrev_cache;
my $frozenlinks_cache;

if (!defined(&BSSolv::isobscpio)) {
*BSSolv::isobscpio = sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::obscpiostat = sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::obscpioopen= sub {die("installed BSSolv does not support obscpio\n") };
*BSSolv::expandobscpio = sub {die("installed BSSolv does not support obscpio\n") };
}

sub notify {
my ($type, $p) = @_;
Expand Down

0 comments on commit 3959bab

Please sign in to comment.