Skip to content

Commit

Permalink
[backend] silly, silly, silly, but silent
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Dec 14, 2011
1 parent dfb5c2d commit 322412a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/backend/bs_dispatch
Expand Up @@ -61,7 +61,7 @@ if ($BSConfig::powerpkgs) {
}
}

BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync;
BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync || $BSConfig::disable_data_sync;

my $bsdir = $BSConfig::bsdir || "/srv/obs";

Expand Down
4 changes: 2 additions & 2 deletions src/backend/bs_publish
Expand Up @@ -47,9 +47,9 @@ use BSNotify;

use strict;

BSUtil::drop_privs_to($BSConfig::bsuser, $BSConfig::bsgroup);
BSUtil::drop_privs_to($BSConfig::bsuser||$BSConfig::bsuser, $BSConfig::bsgroup||$BSConfig::bsgroup);

BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync;
BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync || $BSConfig::disable_data_sync;

my $reporoot = "$BSConfig::bsdir/build";
my $eventdir = "$BSConfig::bsdir/events";
Expand Down
4 changes: 2 additions & 2 deletions src/backend/bs_repserver
Expand Up @@ -72,7 +72,7 @@ $port = $1 if $BSConfig::reposerver =~ /:(\d+)$/;
my $proxy;
$proxy = $BSConfig::proxy if defined($BSConfig::proxy);

BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync;
BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync || $BSConfig::disable_data_sync;

my $historylay = [qw{versrel bcnt srcmd5 rev time}];

Expand Down Expand Up @@ -1044,7 +1044,7 @@ sub workerstate {
unlink("$workersdir/building/$idlename");

# make sure that we can connect to the client
if ($BSConfig::checkclientconnectivity) {
if ($BSConfig::checkclientconnectivity || $BSConfig::checkclientconnectivity) {
my $param = {
'uri' => "http://$peerip:$peerport/status",
'async' => 1,
Expand Down
4 changes: 2 additions & 2 deletions src/backend/bs_service
Expand Up @@ -50,9 +50,9 @@ use strict;
undef $BSConfig::bsuser; # need to stay root
undef $BSConfig::bsgroup;

BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync;
BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync || $BSConfig::disable_data_sync;

my $tempdir = $BSConfig::servicetempdir || "/var/tmp";
my $tempdir = $BSConfig::servicetempdir || $BSConfig::servicetempdir || "/var/tmp";
my $port = 5152;
$port = $1 if $BSConfig::serviceserver =~ /:(\d+)$/;
my $silent;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_signer
Expand Up @@ -262,7 +262,7 @@ sub signjob {
my @signfiles = grep {/\.(?:d?rpm|sha256|iso)$/} @files;
if (@signfiles) {
my @signargs;
push @signargs, '--project', $projid if $BSConfig::sign_project;
push @signargs, '--project', $projid if $BSConfig::sign_project || $BSConfig::sign_project;
my $param = {
'uri' => "$BSConfig::srcserver/getsignkey",
'timeout' => 60,
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_srcserver
Expand Up @@ -64,7 +64,7 @@ $port = $1 if $BSConfig::srcserver =~ /:(\d+)$/;
my $proxy;
$proxy = $BSConfig::proxy if defined($BSConfig::proxy);

BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync;
BSUtil::set_fdatasync_before_rename() unless $BSConfig::disable_data_sync || $BSConfig::disable_data_sync;

my $projectsdir = "$BSConfig::bsdir/projects";
my $eventdir = "$BSConfig::bsdir/events";
Expand Down

0 comments on commit 322412a

Please sign in to comment.