diff options
author | jbj <devnull@localhost> | 2002-07-14 21:23:29 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-07-14 21:23:29 +0000 |
commit | 3ea74aa3c7203c10ad97326778e22b1e654eefc7 (patch) | |
tree | 6968b695ccf7c4b0e8539eff13a1263770a72a70 /python/upgrade.c | |
parent | 8caf68303188699c1a1d9499c53a43794a86d922 (diff) | |
download | librpm-tizen-3ea74aa3c7203c10ad97326778e22b1e654eefc7.tar.gz librpm-tizen-3ea74aa3c7203c10ad97326778e22b1e654eefc7.tar.bz2 librpm-tizen-3ea74aa3c7203c10ad97326778e22b1e654eefc7.zip |
- python: sanity check fixes on rpmts/rpmte methods.
CVS patchset: 5554
CVS date: 2002/07/14 21:23:29
Diffstat (limited to 'python/upgrade.c')
-rw-r--r-- | python/upgrade.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/python/upgrade.c b/python/upgrade.c index 0fd54eceb..5832ea001 100644 --- a/python/upgrade.c +++ b/python/upgrade.c @@ -2,11 +2,9 @@ * \file python/upgrade.c */ -#include <stdio.h> -#include <stdlib.h> -#include <unistd.h> +#include "system.h" + #include <fcntl.h> -#include <string.h> #include <glob.h> /* XXX rpmio.h */ #include <dirent.h> /* XXX rpmio.h */ @@ -17,6 +15,8 @@ #include "hash.h" #include "upgrade.h" +#include "debug.h" + #define MAXPKGS 1024 #define USEDEBUG 0 @@ -170,7 +170,7 @@ static int findPackagesWithObsoletes(rpmdb db, struct pkgSet *psp) while (obsoletesCount--) { if (rpmdbCountPackages(db, obsoletes[obsoletesCount]) > 0) { (*pip)->selected = 1; - break; + /*@innerbreak@*/ break; } } @@ -228,7 +228,7 @@ static int findUpgradePackages(rpmdb db, struct pkgSet *psp, /* already have a newer version installed */ DEBUG (("Already have newer version\n")) skipThis = 1; - break; + /*@innerbreak@*/ break; } } mi = rpmdbFreeIterator(mi); @@ -329,7 +329,7 @@ static int removeMovedFilesAlreadyHandled(struct pkgSet *psp, availFiles[i]); DEBUG (("File already in %s: %s%s\n", name, availDirs[availDirIndexes[i]], availFiles[i])) - break; + /*@innerbreak@*/ break; } } @@ -375,7 +375,7 @@ static int findPackagesWithRelocatedFiles(struct pkgSet *psp, { for (i = 0; i < availFileCount; i++) { - if (S_ISDIR(availFileModes[i])) continue; + if (S_ISDIR(availFileModes[i])) /*@innercontinue@*/ continue; if (htInTable(ht, availDirs[availDirIndexes[i]], availFiles[i])) { @@ -446,7 +446,7 @@ static int unmarkPackagesAlreadyInstalled(rpmdb db, struct pkgSet *psp) /* already have a newer version installed */ DEBUG (("Already have newer version\n")) (*pip)->selected = 0; - break; + /*@innerbreak@*/ break; } } mi = rpmdbFreeIterator(mi); |