tools/rpmsort.c File Reference

#include "system.h"
#include <rpmlib.h>
#include <rpmmacro.h>
#include <rpmurl.h>
#include "rpmdb.h"
#include "rpmps.h"
#include "rpmte.h"
#include "rpmts.h"
#include "manifest.h"
#include "misc.h"
#include "debug.h"

Go to the source code of this file.

Functions

static const char *const identifyDepend (int_32 f)
static int do_tsort (const char *fileArgv[])
int main (int argc, const char *argv[])

Variables

const char * program_name
static int _depends_debug
static int noAvailable = 1
static const char * avdbpath
static int noDeps = 0
static struct poptOption optionsTable []


Function Documentation

static int do_tsort ( const char *  fileArgv[]  )  [static]

Definition at line 46 of file rpmsort.c.

References _, _free(), addMacro(), alloca(), avdbpath, delMacro(), Fclose(), Ferror(), Fopen(), Fstrerror(), headerFree(), noAvailable, noDeps, RMIL_CMDLINE, rpmdbClose(), rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), rpmdbNextIterator(), rpmdbOpen(), RPMERR_MANIFEST, RPMERR_OPEN, rpmError, rpmGlob(), RPMMESS_ERROR, rpmMessage, rpmpsFree(), rpmpsPrint(), RPMRC_NOTFOUND, RPMRC_OK, rpmReadPackageFile(), rpmReadPackageManifest(), rpmteDepth(), rpmteN(), rpmteParent(), rpmteTree(), rpmtsAddInstallElement(), rpmtsCheck(), rpmtsCreate(), rpmtsFree(), rpmtsiFree, rpmtsiInit, rpmtsiNext(), rpmtsNElements(), rpmtsOpenDB(), rpmtsOrder(), rpmtsProblems(), TR_ADDED, urlPath(), xmalloc(), and xrealloc().

Referenced by main().

static const char* const identifyDepend ( int_32  f  )  [inline, static]

Definition at line 24 of file rpmsort.c.

References _notpre, isLegacyPreReq, RPMSENSE_FIND_REQUIRES, RPMSENSE_SCRIPT_POST, RPMSENSE_SCRIPT_POSTUN, RPMSENSE_SCRIPT_PRE, RPMSENSE_SCRIPT_PREUN, and RPMSENSE_SCRIPT_VERIFY.

int main ( int  argc,
const char *  argv[] 
)

Definition at line 279 of file rpmsort.c.

References _, _depends_debug, bindtextdomain, do_tsort(), EXIT_FAILURE, LOCALEDIR, optionsTable, PACKAGE, rpmIncreaseVerbosity, rpmReadConfigFiles(), setlocale, setprogname, and textdomain.


Variable Documentation

int _depends_debug [static]

Definition at line 17 of file rpmsort.c.

Referenced by main().

const char* avdbpath [static]

Initial value:

        "/usr/lib/rpmdb/%{_arch}-%{_vendor}-%{_os}/redhat"

Definition at line 20 of file rpmsort.c.

Referenced by do_tsort().

int noAvailable = 1 [static]

Definition at line 19 of file rpmsort.c.

Referenced by do_tsort().

int noDeps = 0 [static]

Definition at line 22 of file rpmsort.c.

struct poptOption optionsTable[] [static]

Initial value:

 {
 { "noavailable", '\0', 0, &noAvailable, 0,     NULL, NULL},
 { "nodeps", '\0', 0, &noDeps, 0,               NULL, NULL},
 { "verbose", 'v', 0, 0, 'v',                   NULL, NULL},
 { NULL,        0, 0, 0, 0,                     NULL, NULL}
}

Definition at line 271 of file rpmsort.c.

const char* program_name

Definition at line 2 of file rpmsort.c.


Generated on Tue Feb 19 22:26:42 2008 for rpm by  doxygen 1.5.1