Fix: warning on output of diff command
This commit is contained in:
parent
794c80b8fb
commit
e23dc5fb07
@ -1,4 +1,7 @@
|
|||||||
ChangeLog for pkg-get
|
ChangeLog for pkg-get
|
||||||
|
|
||||||
|
X.X.X - Fixed warnings on output of diff command
|
||||||
|
|
||||||
0.4.5 - Added --all switch for diff command (also lists
|
0.4.5 - Added --all switch for diff command (also lists
|
||||||
locked packages)
|
locked packages)
|
||||||
|
|
||||||
|
@ -943,7 +943,7 @@ sub diff {
|
|||||||
printf("%-19s %-19s %-19s\n\n","Package","Installed","Available in the repositories");
|
printf("%-19s %-19s %-19s\n\n","Package","Installed","Available in the repositories");
|
||||||
$gotdiff = 1;
|
$gotdiff = 1;
|
||||||
}
|
}
|
||||||
printf("%-19s %-19s %-19s %-19s\n", $pkg{'name'}, $pkg{'instversion'}, $pkg{'version'}."-".$pkg{'release'});
|
printf("%-19s %-19s %-19s\n", $pkg{'name'}, $pkg{'instversion'}, $pkg{'version'}."-".$pkg{'release'});
|
||||||
} elsif ($all) { # yeah, it blows, at least avoid to read the locked state twice.
|
} elsif ($all) { # yeah, it blows, at least avoid to read the locked state twice.
|
||||||
if ($gotdiff == 0){
|
if ($gotdiff == 0){
|
||||||
print "Differences between installed packages and packages repo:\n\n";
|
print "Differences between installed packages and packages repo:\n\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user