lib/rpminstall.c File Reference

#include "system.h"
#include <rpmcli.h>
#include "rpmdb.h"
#include "rpmte.h"
#include "rpmts.h"
#include "manifest.h"
#include "misc.h"
#include "rpmgi.h"
#include "debug.h"

Include dependency graph for rpminstall.c:

Go to the source code of this file.

Data Structures

struct  rpmEIU

Defines

#define _RPMTS_INTERNAL

Typedefs

typedef const char * str_t

Functions

static void printHash (const unsigned long long amount, const unsigned long long total)
 Print a CLI progress bar.
void * rpmShowProgress (const void *arg, const rpmCallbackType what, const unsigned long long amount, const unsigned long long total, fnpyKey key, void *data)
 The rpm CLI generic transaction callback handler.
int rpmInstall (rpmts ts, QVA_t ia, const char **fileArgv)
 Install/upgrade/freshen binary rpm package.
int rpmErase (rpmts ts, QVA_t ia, const char **argv)
 Erase binary rpm package.
int rpmInstallSource (rpmts ts, const char *arg, const char **specFilePtr, const char **cookie)
 Install source rpm package.

Variables

int rpmcliPackagesTotal = 0
int rpmcliHashesCurrent = 0
int rpmcliHashesTotal = 0
unsigned long long rpmcliProgressCurrent = 0
unsigned long long rpmcliProgressTotal = 0


Detailed Description

Definition in file rpminstall.c.


Define Documentation

#define _RPMTS_INTERNAL

Definition at line 15 of file rpminstall.c.


Typedef Documentation

typedef const char* str_t

Definition at line 264 of file rpminstall.c.


Function Documentation

static void printHash ( const unsigned long long  amount,
const unsigned long long  total 
) [static]

Print a CLI progress bar.

Todo:
Unsnarl isatty(STDOUT_FILENO) from the control flow.
Parameters:
amount current
total final

Definition at line 42 of file rpminstall.c.

References rpmcliHashesCurrent, rpmcliHashesTotal, rpmcliProgressCurrent, and rpmcliProgressTotal.

Referenced by rpmShowProgress().


Variable Documentation

Definition at line 28 of file rpminstall.c.

Referenced by printHash(), and rpmShowProgress().

Definition at line 30 of file rpminstall.c.

Referenced by printHash().

Definition at line 26 of file rpminstall.c.

Referenced by rpmInstall(), rpmRollback(), rpmShowProgress(), and rpmtsAddInstallElement().

unsigned long long rpmcliProgressCurrent = 0

Definition at line 32 of file rpminstall.c.

Referenced by printHash(), and rpmShowProgress().

unsigned long long rpmcliProgressTotal = 0

Definition at line 34 of file rpminstall.c.

Referenced by printHash(), and rpmShowProgress().


Generated on Fri Jun 19 18:49:25 2009 for rpm by  doxygen 1.5.7.1