Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

python/upgrade.c File Reference

More...

#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)
void compareFileList (int availFileCount, char **availBaseNames, char **availDirNames, int *availDirIndexes, int instFileCount, char **instBaseNames, char **instDirNames, int *instDirIndexes, struct hash_table *ht)
void addLostFiles (rpmdb db, struct pkgSet *psp, struct hash_table *ht)
int findPackagesWithObsoletes (rpmdb db, struct pkgSet *psp)
void errorFunction (void)
int findUpgradePackages (rpmdb db, struct pkgSet *psp, struct hash_table *ht)
int removeMovedFilesAlreadyHandled (struct pkgSet *psp, struct hash_table *ht)
int findPackagesWithRelocatedFiles (struct pkgSet *psp, struct hash_table *ht)
int unmarkPackagesAlreadyInstalled (rpmdb db, struct pkgSet *psp)
void emptyErrorCallback (void)
int ugFindUpgradePackages (struct pkgSet *psp, char *installRoot)


Detailed Description

Definition in file upgrade.c.


Define Documentation

#define DEBUG( x )
 

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

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

Definition at line 105 of file upgrade.c.

Referenced by ugFindUpgradePackages().

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.

Referenced by addLostFiles(), and findUpgradePackages().

void emptyErrorCallback ( void ) [static]
 

Definition at line 462 of file upgrade.c.

void errorFunction ( void ) [static]
 

Definition at line 185 of file upgrade.c.

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

Definition at line 153 of file upgrade.c.

Referenced by ugFindUpgradePackages().

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

Definition at line 346 of file upgrade.c.

Referenced by ugFindUpgradePackages().

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

Definition at line 189 of file upgrade.c.

Referenced by ugFindUpgradePackages().

int pkgCompare ( void * first,
void * second )
 

Definition at line 42 of file upgrade.c.

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

Definition at line 296 of file upgrade.c.

Referenced by ugFindUpgradePackages().

int ugFindUpgradePackages ( struct pkgSet * psp,
char * installRoot )
 

Definition at line 465 of file upgrade.c.

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

Definition at line 418 of file upgrade.c.

Referenced by ugFindUpgradePackages().


Generated at Fri Aug 2 00:04:15 2002 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001