fixed apt-get exit status (#11527)

This commit is contained in:
Alexey Tourbin 2007-04-19 01:09:14 +04:00
parent a8a5b2693d
commit 50c8f0252e
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc- 2007-04-19 01:09:58 +0400
+++ apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc 2007-04-19 01:12:02 +0400
@@ -922,11 +922,11 @@ bool pkgRPMLibPM::Process(vector<const c
_error->Error(_("Error while running transaction"));
if (probs->numProblems > 0)
rpmpsPrint(stderr, probs);
+ } else if (rc < 0) {
+ _error->Error(_("Some errors occurred while running transaction"));
} else {
Success = true;
- if (rc < 0)
- _error->Warning(_("Some errors occurred while running transaction"));
- else if (quiet <= 2)
+ if (quiet <= 2)
cout << _("Done.") << endl;
}
rpmpsFree(probs);

View File

@ -61,6 +61,7 @@ Patch47: apt-0.5.15lorg2-alt-realloc.patch
Patch48: apt-0.5.15lorg2-alt-apt-get-TryToInstall-PrvPkgCandVer.patch Patch48: apt-0.5.15lorg2-alt-apt-get-TryToInstall-PrvPkgCandVer.patch
Patch49: apt-0.5.15lorg2-alt-apt-get-simple-output.patch Patch49: apt-0.5.15lorg2-alt-apt-get-simple-output.patch
Patch50: apt-0.5.15lorg2-alt-versionmatch-TryToChangeVer.patch Patch50: apt-0.5.15lorg2-alt-versionmatch-TryToChangeVer.patch
Patch51: apt-0.5.15lorg3-alt-exit-status.patch
# Normally not applied, but useful. # Normally not applied, but useful.
Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch
@ -268,6 +269,7 @@ This package contains method 'rsync' for APT.
%patch48 -p1 %patch48 -p1
%patch49 -p1 %patch49 -p1
%patch50 -p1 %patch50 -p1
%patch51 -p1
find -type f -name \*.orig -delete find -type f -name \*.orig -delete