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

#define DEBUG (  ) 
Value:
{   \
     if (USEDEBUG)   \
         printf x; \
     }

Definition at line 23 of file upgrade.c.

#define MAXPKGS   1024

Definition at line 19 of file upgrade.c.

#define USEDEBUG   0

Definition at line 21 of file upgrade.c.


Function Documentation

static void addLostFiles ( rpmdb  db,
struct pkgSet psp,
struct hash_table ht 
) [static]

Definition at line 105 of file upgrade.c.

static void compareFileList ( int  availFileCount,
char **  availBaseNames,
char **  availDirNames,
int *  availDirIndexes,
int  instFileCount,
char **  instBaseNames,
char **  instDirNames,
int *  instDirIndexes,
struct hash_table ht 
) [static]

Definition at line 56 of file upgrade.c.

static void emptyErrorCallback ( void   )  [static]

Definition at line 462 of file upgrade.c.

static void errorFunction ( void   )  [static]

Definition at line 185 of file upgrade.c.

static int findPackagesWithObsoletes ( rpmdb  db,
struct pkgSet psp 
) [static]

Definition at line 153 of file upgrade.c.

static int findPackagesWithRelocatedFiles ( struct pkgSet psp,
struct hash_table ht 
) [static]

Definition at line 346 of file upgrade.c.

static int findUpgradePackages ( rpmdb  db,
struct pkgSet psp,
struct hash_table ht 
) [static]

Definition at line 189 of file upgrade.c.

int pkgCompare ( void *  first,
void *  second 
)

Definition at line 42 of file upgrade.c.

static int removeMovedFilesAlreadyHandled ( struct pkgSet psp,
struct hash_table ht 
) [static]

Definition at line 296 of file upgrade.c.

int ugFindUpgradePackages ( struct pkgSet psp,
char *  installRoot 
)

Definition at line 465 of file upgrade.c.

static int unmarkPackagesAlreadyInstalled ( rpmdb  db,
struct pkgSet psp 
) [static]

Definition at line 418 of file upgrade.c.

Generated on Fri Feb 26 00:45:17 2010 for rpm by  doxygen 1.6.3