- Timestamp:
- Sep 6, 2019, 3:35:27 PM (6 years ago)
- Location:
- devel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Conf.pm
r2426 r2434 185 185 # Read the content of the config file and cache it in the %h hash then available for queries 186 186 if ($PBCONFVER < 1) { 187 open(CONF,$cf) || cluck "Unable to open $cf" && return($lh);187 open(CONF,$cf) || (cluck "Unable to open $cf" && return($lh)); 188 188 # This is the original conf file format for versions up to 0.14 189 189 while(<CONF>) { … … 337 337 confess "No configuration file defined to write into !" if (not defined $conffile); 338 338 confess "No hash defined to read from !" if (not defined $h); 339 open(CONF,"> $conffile") || cluck "Unable to write into $conffile" && return;339 open(CONF,"> $conffile") || (cluck "Unable to write into $conffile" && return); 340 340 341 341 if ($PBCONFVER < 1) { … … 553 553 my $dest = shift; 554 554 555 open(ORIG,$orig) || cluck "Unable to open $orig" && return;555 open(ORIG,$orig) || (cluck "Unable to open $orig" && return); 556 556 confess "Will not erase existing $dest while transforming $orig" if (-f $dest); 557 open(DEST,"> $dest") || cluck "Unable to write into $dest" && close(ORIG) && return;557 open(DEST,"> $dest") || (cluck "Unable to write into $dest" && close(ORIG) && return); 558 558 print DEST "---\n"; 559 559 my $pbconfverbkp = $PBCONFVER; -
devel/pb-modules/lib/ProjectBuilder/Distribution.pm
r2429 r2434 472 472 my $oldsep = $/; 473 473 $/ = $sep; 474 open(DESC,"$f") || cluck "Unable to open $f" && return("");474 open(DESC,"$f") || (cluck "Unable to open $f" && return("")); 475 475 while (<DESC>) { 476 476 pb_log(4,"read: $_\n"); … … 563 563 my $res = pb_system("dpkg -L $p","Looking for $p","mayfail"); 564 564 next if ($res eq 0); 565 open(CMD,"dpkg -l $p |") || cluck "Unable to run dpkg -l $p: $!" && next;565 open(CMD,"dpkg -l $p |") || (cluck "Unable to run dpkg -l $p: $!" && next); 566 566 my $ok = 0; 567 567 while (<CMD>) { … … 749 749 if ($pbos->{install} =~ /\bzypper\b/) { 750 750 my $keyfile = undef; 751 open(REPO,"$dest") || cluck "Unable to open $dest" && next;751 open(REPO,"$dest") || (cluck "Unable to open $dest" && next); 752 752 while (<REPO>) { 753 753 $keyfile = $_; … … 767 767 # URPMI repo 768 768 # We should test that it's not an already setup urpmi repo 769 open(URPMI,"/etc/urpmi/urpmi.cfg") || cluck "Unable to open /etc/urpmi/urpmi.cfg" && next;769 open(URPMI,"/etc/urpmi/urpmi.cfg") || (cluck "Unable to open /etc/urpmi/urpmi.cfg" && next); 770 770 my $found = 0; 771 771 my $entry = $bn; … … 786 786 # Check whether GPG keys for this repo are already known and if 787 787 # not add them 788 open(REPO,"$dest") || cluck "Unable to open $dest" && next;788 open(REPO,"$dest") || (cluck "Unable to open $dest" && next); 789 789 my $debrepo; 790 790 while (<REPO>) { … … 807 807 $keyserver = $pbgpgserver->{'default'} if (not defined $keyserver); 808 808 confess "Unable to find a GPG server in configuration, please define correctly pbgpgserver" if (not defined $keyserver); 809 open(SIGN,"LANGUAGE=C LANG=C gpg --verify --keyid-format=long $ENV{'PBTMP'}/Release.gpg $ENV{'PBTMP'}/Release 2>&1 |") || cluck "Unable to verify GPG signature from Release.gpg\n" && next;809 open(SIGN,"LANGUAGE=C LANG=C gpg --verify --keyid-format=long $ENV{'PBTMP'}/Release.gpg $ENV{'PBTMP'}/Release 2>&1 |") || (cluck "Unable to verify GPG signature from Release.gpg\n" && next); 810 810 while(<SIGN>) { 811 811 chomp(); -
devel/pb-modules/lib/ProjectBuilder/VCS.pm
r2403 r2434 869 869 } 870 870 } 871 pb_log( 1,"pb_vcs_compliant end\n");871 pb_log(2,"pb_vcs_compliant end\n"); 872 872 } 873 873 -
devel/pb/lib/ProjectBuilder/CMS.pm
r2406 r2434 194 194 if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)) { 195 195 if (! -f "$dest/ChangeLog") { 196 open(CL,"> $dest/ChangeLog") || cluck "Unable to create $dest/ChangeLog" && return;196 open(CL,"> $dest/ChangeLog") || (cluck "Unable to create $dest/ChangeLog" && return); 197 197 # We need a minimal version for debian type of build 198 198 print CL "\n"; -
devel/pbmkbm/bin/pbmkbm
r2362 r2434 457 457 458 458 my $busycmd = pb_distro_get_param($pbos,pb_conf_get("ospathcmd-busybox")); 459 open(BUSY,"$busycmd |") || cluck "ERROR: Unable to execute $busycmd" && return;459 open(BUSY,"$busycmd |") || (cluck "ERROR: Unable to execute $busycmd" && return); 460 460 my $cmdlist = 0; 461 461 while (<BUSY>) {
Note:
See TracChangeset
for help on using the changeset viewer.