python/upgrade.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <glob.h>
#include <dirent.h>
#include <rpmlib.h>
#include "hash.h"
#include "upgrade.h"
Go to the source code of this file.
Defines |
#define | MAXPKGS 1024 |
#define | USEDEBUG 0 |
#define | DEBUG(x) |
Functions |
int | pkgCompare (void *first, void *second) |
static void | compareFileList (int availFileCount, char **availBaseNames, char **availDirNames, int *availDirIndexes, int instFileCount, char **instBaseNames, char **instDirNames, int *instDirIndexes, struct hash_table *ht) |
static void | addLostFiles (rpmdb db, struct pkgSet *psp, struct hash_table *ht) |
static int | findPackagesWithObsoletes (rpmdb db, struct pkgSet *psp) |
static void | errorFunction (void) |
static int | findUpgradePackages (rpmdb db, struct pkgSet *psp, struct hash_table *ht) |
static int | removeMovedFilesAlreadyHandled (struct pkgSet *psp, struct hash_table *ht) |
static int | findPackagesWithRelocatedFiles (struct pkgSet *psp, struct hash_table *ht) |
static int | unmarkPackagesAlreadyInstalled (rpmdb db, struct pkgSet *psp) |
static void | emptyErrorCallback (void) |
int | ugFindUpgradePackages (struct pkgSet *psp, char *installRoot) |
Detailed Description
Definition in file upgrade.c.
Define Documentation
Function Documentation
static void compareFileList |
( |
int |
availFileCount, |
|
|
char ** |
availBaseNames, |
|
|
char ** |
availDirNames, |
|
|
int * |
availDirIndexes, |
|
|
int |
instFileCount, |
|
|
char ** |
instBaseNames, |
|
|
char ** |
instDirNames, |
|
|
int * |
instDirIndexes, |
|
|
struct hash_table * |
ht | |
|
) |
| | [static] |
static void emptyErrorCallback |
( |
void |
|
) |
[static] |
static void errorFunction |
( |
void |
|
) |
[static] |
static int findPackagesWithObsoletes |
( |
rpmdb |
db, |
|
|
struct pkgSet * |
psp | |
|
) |
| | [static] |
static int findPackagesWithRelocatedFiles |
( |
struct pkgSet * |
psp, |
|
|
struct hash_table * |
ht | |
|
) |
| | [static] |
int pkgCompare |
( |
void * |
first, |
|
|
void * |
second | |
|
) |
| | |
static int removeMovedFilesAlreadyHandled |
( |
struct pkgSet * |
psp, |
|
|
struct hash_table * |
ht | |
|
) |
| | [static] |
int ugFindUpgradePackages |
( |
struct pkgSet * |
psp, |
|
|
char * |
installRoot | |
|
) |
| | |
static int unmarkPackagesAlreadyInstalled |
( |
rpmdb |
db, |
|
|
struct pkgSet * |
psp | |
|
) |
| | [static] |