rpm 5.3.12
|
#include "system.h"
#include <rpmio_internal.h>
#include <rpmiotypes.h>
#include <rpmio.h>
#include <rpmlog.h>
#include <rpmurl.h>
#include <poptIO.h>
#include <rpmrepo.h>
#include <rpmtypes.h>
#include <rpmtag.h>
#include <pkgio.h>
#include <rpmts.h>
#include "debug.h"
#include "yum_primary_xml"
#include "yum_filelists_xml"
#include "yum_other_xml"
#include "wnh_primary_yaml"
#include "wnh_filelists_yaml"
#include "wnh_other_yaml"
#include "deb_Packages"
#include "deb_Sources"
#include "yum_primary_sqlite"
#include "yum_filelists_sqlite"
#include "yum_other_sqlite"
Go to the source code of this file.
Defines | |
#define | _RPMREPO_INTERNAL |
#define | REPODBG(_l) if (_rpmrepo_debug) fprintf _l |
Functions | |
static int | rpmioExists (const char *fn, struct stat *st) |
Return stat(2) for a file. | |
static time_t | rpmioCtime (const char *fn) |
Return stat(2) creation time of a file. | |
void | rpmrepoError (int lvl, const char *fmt,...) |
Print an error message and exit (if requested). | |
static const char * | rpmrepoGetPath (rpmrepo repo, const char *dir, const char *type, int compress) |
Return /repository/directory/component.markup.compression path. | |
static void | rpmrepoProgress (rpmrepo repo, const char *item, int current, int total) |
Display progress. | |
static int | rpmrepoMkdir (rpmrepo repo, const char *dn) |
Create directory path. | |
const char * | rpmrepoRealpath (const char *lpath) |
Return realpath(3) canonicalized absolute path. | |
int | rpmrepoTestSetupDirs (rpmrepo repo) |
Test for repository sanity. | |
static int | chkSuffix (const char *fn, const char *suffix) |
Check file name for a suffix. | |
const char ** | rpmrepoGetFileList (rpmrepo repo, const char *roots[], const char *ext) |
Walk file/directory trees, looking for files with an extension. | |
int | rpmrepoCheckTimeStamps (rpmrepo repo) |
Check that repository time stamp is newer than any contained package. | |
static int | rpmrfileXMLWrite (rpmrfile rfile, const char *spew) |
Write to a repository metadata file. | |
static int | rpmrepoFclose (rpmrepo repo, FD_t fd) |
Close an I/O stream, accumulating uncompress/digest statistics. | |
static int | rpmrepoOpenMDFile (const rpmrepo repo, rpmrfile rfile) |
Open a repository metadata file. | |
static int | rpmrepoRfileDigest (const rpmrepo repo, rpmrfile rfile, const char **digestp) |
Compute digest of a file. | |
static int | rpmrepoCloseMDFile (const rpmrepo repo, rpmrfile rfile) |
Close a repository metadata file. | |
static const char * | algo2tagname (uint32_t algo) |
static const char * | rpmrepoMDExpand (rpmrepo repo, rpmrfile rfile) |
Return a repository metadata file item. | |
int | rpmrepoDoRepoMetadata (rpmrepo repo) |
Write repository manifest. | |
int | rpmrepoDoFinalMove (rpmrepo repo) |
Rename temporary repository to final paths. | |
static Header | rpmrepoReadHeader (rpmrepo repo, const char *path) |
Read a header from a repository package file, computing package file digest. | |
static const char * | rfileHeaderSprintf (Header h, const char *qfmt) |
Return header query. | |
static int | rpmrepoWriteMDFile (rpmrepo repo, rpmrfile rfile, Header h) |
Export a single package's metadata to repository metadata file(s). | |
static int | repoWriteMetadataDocs (rpmrepo repo) |
Export all package metadata to repository metadata file(s). | |
int | rpmrepoDoPkgMetadata (rpmrepo repo) |
Write repository metadata files. | |
static int | rpmrepoInitPopt (rpmrepo repo, char **av) |
static void | rpmrepoFini (void *_repo) |
static rpmrepo | rpmrepoGetPool (rpmioPool pool) |
rpmrepo | rpmrepoNew (char **av, int flags) |
Create and load a repo wrapper. | |
Variables | |
int | _rpmrepo_debug = 0 |
static const char | primary_xml_init [] = "<metadata xmlns=\"http://linux.duke.edu/metadata/common\" xmlns:rpm=\"http://linux.duke.edu/metadata/rpm\" packages=\"0\">\n" |
static const char | primary_xml_fini [] = "</metadata>\n" |
static const char | filelists_xml_init [] = "<filelists xmlns=\"http://linux.duke.edu/metadata/filelists\" packages=\"0\">\n" |
static const char | filelists_xml_fini [] = "</filelists>\n" |
static const char | other_xml_init [] = "<otherdata xmlns=\"http://linux.duke.edu/metadata/other\" packages=\"0\">\n" |
static const char | other_xml_fini [] = "</otherdata>\n" |
static const char | repomd_xml_init [] |
static const char | repomd_xml_fini [] = "</repomd>\n" |
static const char | primary_xml_qfmt [] |
static const char | filelists_xml_qfmt [] |
static const char | other_xml_qfmt [] |
static const char | primary_yaml_qfmt [] |
static const char | filelists_yaml_qfmt [] |
static const char | other_yaml_qfmt [] |
static const char | Packages_qfmt [] |
static const char | Sources_qfmt [] |
static const char * | primary_sql_init [] |
static const char * | filelists_sql_init [] |
static const char * | other_sql_init [] |
static const char | primary_sql_qfmt [] |
static const char | filelists_sql_qfmt [] |
static const char | other_sql_qfmt [] |
static struct rpmrepo_s | __repo |
static rpmrepo | _repo = &__repo |
static int | compression = -1 |
static struct poptOption | repoCompressionPoptTable [] |
static struct poptOption | _rpmrepoOptions [] |
static struct poptOption | rpmrepoOptionsTable [] |
rpmioPool | _rpmrepoPool = NULL |
#define REPODBG | ( | _l | ) | if (_rpmrepo_debug) fprintf _l |
static const char* algo2tagname | ( | uint32_t | algo | ) | [static] |
Definition at line 1023 of file rpmrepo.c.
References PGPHASHALGO_ADLER32, PGPHASHALGO_CRC32, PGPHASHALGO_CRC64, PGPHASHALGO_HAVAL_5_160, PGPHASHALGO_JLU32, PGPHASHALGO_MD2, PGPHASHALGO_MD4, PGPHASHALGO_MD5, PGPHASHALGO_NONE, PGPHASHALGO_RIPEMD128, PGPHASHALGO_RIPEMD160, PGPHASHALGO_RIPEMD256, PGPHASHALGO_RIPEMD320, PGPHASHALGO_SALSA10, PGPHASHALGO_SALSA20, PGPHASHALGO_SHA1, PGPHASHALGO_SHA224, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, and PGPHASHALGO_TIGER192.
Referenced by rpmrepoDoRepoMetadata(), and rpmrepoMDExpand().
static int chkSuffix | ( | const char * | fn, |
const char * | suffix | ||
) | [static] |
Check file name for a suffix.
fn | file name |
suffix | suffix |
Definition at line 614 of file rpmrepo.c.
Referenced by rpmrepoGetFileList().
static int repoWriteMetadataDocs | ( | rpmrepo | repo | ) | [static] |
Export all package metadata to repository metadata file(s).
repo | repository |
Definition at line 1522 of file rpmrepo.c.
References headerFree(), rpmGetPath(), rpmrepoError(), rpmrepoProgress(), rpmrepoReadHeader(), and rpmrepoWriteMDFile().
Referenced by rpmrepoDoPkgMetadata().
static const char* rfileHeaderSprintf | ( | Header | h, |
const char * | qfmt | ||
) | [static] |
Return header query.
h | header |
qfmt | query format |
Definition at line 1424 of file rpmrepo.c.
References _, headerSprintf(), and rpmrepoError().
Referenced by rpmrepoWriteMDFile().
static time_t rpmioCtime | ( | const char * | fn | ) | [static] |
Return stat(2) creation time of a file.
fn | file path |
Definition at line 412 of file rpmrepo.c.
References rpmioExists().
Referenced by rpmrepoCloseMDFile().
static int rpmioExists | ( | const char * | fn, |
struct stat * | st | ||
) | [static] |
Return stat(2) for a file.
st | stat(2) buffer |
Definition at line 400 of file rpmrepo.c.
References Stat().
Referenced by rpmioCtime(), rpmrepoCheckTimeStamps(), rpmrepoDoFinalMove(), rpmrepoDoRepoMetadata(), rpmrepoRfileDigest(), and rpmrepoTestSetupDirs().
int rpmrepoCheckTimeStamps | ( | rpmrepo | repo | ) |
Check that repository time stamp is newer than any contained package.
repo | repository |
Definition at line 681 of file rpmrepo.c.
References _, rpmioExists(), and rpmrepoError().
Referenced by main().
Close a repository metadata file.
repo | repository |
rfile | repository metadata file |
Definition at line 976 of file rpmrepo.c.
References _, _free(), fdFiniDigest(), fdGetOPath(), rpmGetPath(), rpmioCtime(), rpmrepoError(), rpmrepoFclose(), rpmrepoRfileDigest(), rpmrfileXMLWrite(), and xstrdup().
Referenced by rpmrepoDoPkgMetadata().
int rpmrepoDoFinalMove | ( | rpmrepo | repo | ) |
Rename temporary repository to final paths.
repo | repository |
Definition at line 1264 of file rpmrepo.c.
References _, _free(), errno, _ftsent::fts_accpath, Fts_close(), FTS_DP, FTS_F, _ftsent::fts_info, _ftsent::fts_level, _ftsent::fts_name, FTS_NOCHDIR, Fts_open(), _ftsent::fts_path, FTS_PHYSICAL, Fts_read(), FTS_SL, FTS_SLNONE, FTS_XDEV, Rename(), Rmdir(), rpmGetPath(), rpmioExists(), rpmrepoError(), and Unlink().
Referenced by main().
int rpmrepoDoPkgMetadata | ( | rpmrepo | repo | ) |
Write repository metadata files.
repo | repository |
Definition at line 1569 of file rpmrepo.c.
References _free(), argvAdd(), argvCount(), argvFree(), Realpath(), repoWriteMetadataDocs(), rpmGetPath(), rpmrepoCloseMDFile(), rpmrepoGetFileList(), rpmrepoOpenMDFile(), and xstrdup().
Referenced by main().
int rpmrepoDoRepoMetadata | ( | rpmrepo | repo | ) |
Write repository manifest.
repo | repository |
Definition at line 1078 of file rpmrepo.c.
References _, _free(), algo2tagname(), Fopen(), Rename(), rpmExpand(), rpmGetPath(), rpmioExists(), rpmrepoError(), rpmrepoFclose(), rpmrepoGetPath(), rpmrepoMDExpand(), rpmrfileXMLWrite(), Unlink(), and xstrdup().
Referenced by main().
void rpmrepoError | ( | int | lvl, |
const char * | fmt, | ||
... | |||
) |
Print an error message and exit (if requested).
lvl | error level (non-zero exits) |
fmt | msg format |
Definition at line 427 of file rpmrepo.c.
References __progname, and EXIT_FAILURE.
Referenced by main(), repoWriteMetadataDocs(), rfileHeaderSprintf(), rpmrepoCheckTimeStamps(), rpmrepoCloseMDFile(), rpmrepoDoFinalMove(), rpmrepoDoRepoMetadata(), rpmrepoGetFileList(), rpmrepoInitPopt(), rpmrepoMkdir(), rpmrepoOpenMDFile(), rpmrepoTestSetupDirs(), and rpmrfileXMLWrite().
Close an I/O stream, accumulating uncompress/digest statistics.
repo | repository |
fd | I/O stream |
Definition at line 733 of file rpmrepo.c.
References Fclose(), FDSTAT_DIGEST, fdstat_op(), FDSTAT_READ, rpmswAdd(), RPMTS_OP_DIGEST, RPMTS_OP_UNCOMPRESS, and rpmtsOp().
Referenced by rpmrepoCloseMDFile(), rpmrepoDoRepoMetadata(), and rpmrepoRfileDigest().
static void rpmrepoFini | ( | void * | _repo | ) | [static] |
Definition at line 1849 of file rpmrepo.c.
References _free(), _repo, argvFree(), and mireFreeAll().
Referenced by rpmrepoGetPool().
const char** rpmrepoGetFileList | ( | rpmrepo | repo, |
const char * | roots[], | ||
const char * | ext | ||
) |
Walk file/directory trees, looking for files with an extension.
repo | repository |
roots | file/directory trees to search |
ext | file extension to match (usually ".rpm") |
Definition at line 622 of file rpmrepo.c.
References _, argvAdd(), argvPrint(), chkSuffix(), errno, Fts_close(), FTS_D, FTS_DP, FTS_F, _ftsent::fts_info, _ftsent::fts_level, _ftsent::fts_name, _ftsent::fts_namelen, Fts_open(), _ftsent::fts_path, Fts_read(), FTS_SL, mireApply(), and rpmrepoError().
Referenced by main(), and rpmrepoDoPkgMetadata().
static const char* rpmrepoGetPath | ( | rpmrepo | repo, |
const char * | dir, | ||
const char * | type, | ||
int | compress | ||
) | [static] |
Return /repository/directory/component.markup.compression path.
repo | repository |
dir | directory |
type | file |
Definition at line 448 of file rpmrepo.c.
References rpmGetPath().
Referenced by rpmrepoDoRepoMetadata(), rpmrepoOpenMDFile(), rpmrepoRfileDigest(), and rpmrepoTestSetupDirs().
Definition at line 1881 of file rpmrepo.c.
References _rpmrepoPool, rpmioGetPool(), rpmioNewPool(), and rpmrepoFini().
Referenced by rpmrepoNew().
static int rpmrepoInitPopt | ( | rpmrepo | repo, |
char ** | av | ||
) | [static] |
Definition at line 1730 of file rpmrepo.c.
References _, _free(), _repo, argvAdd(), argvCount(), errno, FTS_LOGICAL, FTS_PHYSICAL, MAXPATHLEN, PGPHASHALGO_SHA1, rpmExpand(), rpmGenPath(), rpmGetPath(), rpmioDigestHashAlgo, rpmioFtsOpts, rpmioInit(), rpmIsDebug, rpmIsVerbose, rpmrepoError(), rpmrepoRealpath(), Stat(), URL_IS_DASH, URL_IS_UNKNOWN, and urlPath().
Referenced by rpmrepoNew().
Return a repository metadata file item.
repo | repository |
Definition at line 1061 of file rpmrepo.c.
References algo2tagname(), rpmExpand(), and snprintf().
Referenced by rpmrepoDoRepoMetadata().
static int rpmrepoMkdir | ( | rpmrepo | repo, |
const char * | dn | ||
) | [static] |
Create directory path.
repo | repository |
dn | directory path |
Definition at line 494 of file rpmrepo.c.
References _, _free(), errno, Mkdir(), rpmGetPath(), rpmioMkpath(), rpmrepoError(), URL_IS_UNKNOWN, and urlPath().
Referenced by rpmrepoTestSetupDirs().
rpmrepo rpmrepoNew | ( | char ** | av, |
int | flags | ||
) |
Create and load a repo wrapper.
av | repo argv |
flags | repo flags |
Definition at line 1897 of file rpmrepo.c.
References rpmrepoGetPool(), rpmrepoInitPopt(), and rpmrepoLink().
Referenced by main().
Open a repository metadata file.
repo | repository |
rfile | repository metadata file |
Definition at line 759 of file rpmrepo.c.
References _, _free(), fdInitDigest(), Fopen(), Fstrerror(), Fwrite(), PGPHASHALGO_NONE, rpmGetPath(), rpmrepoError(), rpmrepoGetPath(), and snprintf().
Referenced by rpmrepoDoPkgMetadata().
static void rpmrepoProgress | ( | rpmrepo | repo, |
const char * | item, | ||
int | current, | ||
int | total | ||
) | [static] |
Display progress.
repo | repository |
item | repository item (usually a file path) |
current | current iteration index |
total | maximum iteration index |
Definition at line 465 of file rpmrepo.c.
References __progname.
Referenced by repoWriteMetadataDocs().
Read a header from a repository package file, computing package file digest.
repo | repository |
path | package file path |
Definition at line 1360 of file rpmrepo.c.
References _, __progname, _free(), headerToken_s::baseurl, Fclose(), fdFiniDigest(), fdInitDigest(), Ferror(), Fopen(), Fread(), Fstrerror(), headerFree(), headerSetBaseURL(), headerSetDigest(), headerSetInstance(), PGPHASHALGO_NONE, RPMRC_FAIL, RPMRC_NOKEY, RPMRC_NOTFOUND, RPMRC_NOTTRUSTED, RPMRC_OK, and rpmReadPackageFile().
Referenced by repoWriteMetadataDocs().
const char* rpmrepoRealpath | ( | const char * | lpath | ) |
Return realpath(3) canonicalized absolute path.
lpath | file path |
Definition at line 515 of file rpmrepo.c.
References MAXPATHLEN, Realpath(), and xstrdup().
Referenced by main(), and rpmrepoInitPopt().
static int rpmrepoRfileDigest | ( | const rpmrepo | repo, |
rpmrfile | rfile, | ||
const char ** | digestp | ||
) | [static] |
Compute digest of a file.
Definition at line 902 of file rpmrepo.c.
References _free(), fdFiniDigest(), fdInitDigest(), Ferror(), Fileno(), Fopen(), Fread(), RPMDIGEST_NONE, rpmDigestFinal(), rpmDigestInit(), rpmDigestUpdate(), rpmioExists(), rpmrepoFclose(), rpmrepoGetPath(), rpmswEnter(), rpmswExit(), RPMTS_OP_DIGEST, rpmtsOp(), URL_IS_PATH, URL_IS_UNKNOWN, and urlPath().
Referenced by rpmrepoCloseMDFile().
int rpmrepoTestSetupDirs | ( | rpmrepo | repo | ) |
Test for repository sanity.
repo | repository |
Definition at line 530 of file rpmrepo.c.
References _, _free(), Access(), rpmGetPath(), rpmioExists(), rpmrepoError(), rpmrepoGetPath(), rpmrepoMkdir(), and W_OK.
Referenced by main().
Export a single package's metadata to repository metadata file(s).
repo | repository |
rfile | repository metadata file |
h | header |
Definition at line 1496 of file rpmrepo.c.
References rfileHeaderSprintf(), and rpmrfileXMLWrite().
Referenced by repoWriteMetadataDocs().
static int rpmrfileXMLWrite | ( | rpmrfile | rfile, |
const char * | spew | ||
) | [static] |
Write to a repository metadata file.
rfile | repository metadata file |
spew | contents |
Definition at line 709 of file rpmrepo.c.
References _, _free(), Fstrerror(), Fwrite(), and rpmrepoError().
Referenced by rpmrepoCloseMDFile(), rpmrepoDoRepoMetadata(), and rpmrepoWriteMDFile().
Definition at line 391 of file rpmrepo.c.
Referenced by rpmrepoFini(), and rpmrepoInitPopt().
struct poptOption _rpmrepoOptions[] [static] |
rpmioPool _rpmrepoPool = NULL |
Definition at line 1879 of file rpmrepo.c.
Referenced by rpmcliFini(), and rpmrepoGetPool().
int compression = -1 [static] |
const char* filelists_sql_init[] [static] |
{ "PRAGMA synchronous = \"OFF\";", "pragma locking_mode = \"EXCLUSIVE\";", "CREATE TABLE db_info (dbversion INTEGER, checksum TEXT);", "CREATE TABLE filelist ( pkgKey INTEGER, name TEXT, type TEXT );", "CREATE TABLE packages ( pkgKey INTEGER PRIMARY KEY, pkgId TEXT);", "CREATE INDEX filelistnames ON filelist (name);", "CREATE INDEX keyfile ON filelist (pkgKey);", "CREATE INDEX pkgId ON packages (pkgId);", "CREATE TRIGGER remove_filelist AFTER DELETE ON packages\ \n BEGIN\ \n DELETE FROM filelist WHERE pkgKey = old.pkgKey;\ \n END;", "INSERT into db_info values (9, 'direct_create');", NULL }
const char filelists_sql_qfmt[] [static] |
const char filelists_xml_fini[] = "</filelists>\n" [static] |
const char filelists_xml_init[] = "<filelists xmlns=\"http://linux.duke.edu/metadata/filelists\" packages=\"0\">\n" [static] |
const char filelists_xml_qfmt[] [static] |
const char filelists_yaml_qfmt[] [static] |
const char* other_sql_init[] [static] |
{ "PRAGMA synchronous = \"OFF\";", "pragma locking_mode = \"EXCLUSIVE\";", "CREATE TABLE changelog ( pkgKey INTEGER, author TEXT, date INTEGER, changelog TEXT);", "CREATE TABLE db_info (dbversion INTEGER, checksum TEXT);", "CREATE TABLE packages ( pkgKey INTEGER PRIMARY KEY, pkgId TEXT);", "CREATE INDEX keychange ON changelog (pkgKey);", "CREATE INDEX pkgId ON packages (pkgId);", "CREATE TRIGGER remove_changelogs AFTER DELETE ON packages\ \n BEGIN\ \n DELETE FROM changelog WHERE pkgKey = old.pkgKey;\ \n END;", "INSERT into db_info values (9, 'direct_create');", NULL }
const char other_sql_qfmt[] [static] |
const char other_xml_fini[] = "</otherdata>\n" [static] |
const char other_xml_init[] = "<otherdata xmlns=\"http://linux.duke.edu/metadata/other\" packages=\"0\">\n" [static] |
const char other_xml_qfmt[] [static] |
const char other_yaml_qfmt[] [static] |
const char Packages_qfmt[] [static] |
const char* primary_sql_init[] [static] |
{ "PRAGMA synchronous = \"OFF\";", "pragma locking_mode = \"EXCLUSIVE\";", "CREATE TABLE conflicts ( pkgKey INTEGER, name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT );", "CREATE TABLE db_info (dbversion INTEGER, checksum TEXT);", "CREATE TABLE files ( pkgKey INTEGER, name TEXT, type TEXT );", "CREATE TABLE obsoletes ( pkgKey INTEGER, name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT );", "CREATE TABLE packages ( pkgKey INTEGER PRIMARY KEY, pkgId TEXT, name TEXT, arch TEXT, version TEXT, epoch TEXT, release TEXT, summary TEXT, description TEXT, url TEXT, time_file INTEGER, time_build INTEGER, rpm_license TEXT, rpm_vendor TEXT, rpm_group TEXT, rpm_buildhost TEXT, rpm_sourcerpm TEXT, rpm_header_start INTEGER, rpm_header_end INTEGER, rpm_packager TEXT, size_package INTEGER, size_installed INTEGER, size_archive INTEGER, location_href TEXT, location_base TEXT, checksum_type TEXT);", "CREATE TABLE provides ( pkgKey INTEGER, name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT );", "CREATE TABLE requires ( pkgKey INTEGER, name TEXT, flags TEXT, epoch TEXT, version TEXT, release TEXT );", "CREATE INDEX filenames ON files (name);", "CREATE INDEX packageId ON packages (pkgId);", "CREATE INDEX packagename ON packages (name);", "CREATE INDEX pkgconflicts on conflicts (pkgKey);", "CREATE INDEX pkgobsoletes on obsoletes (pkgKey);", "CREATE INDEX pkgprovides on provides (pkgKey);", "CREATE INDEX pkgrequires on requires (pkgKey);", "CREATE INDEX providesname ON provides (name);", "CREATE INDEX requiresname ON requires (name);", "CREATE TRIGGER removals AFTER DELETE ON packages\ \n BEGIN\n\ \n DELETE FROM files WHERE pkgKey = old.pkgKey;\ \n DELETE FROM requires WHERE pkgKey = old.pkgKey;\ \n DELETE FROM provides WHERE pkgKey = old.pkgKey;\ \n DELETE FROM conflicts WHERE pkgKey = old.pkgKey;\ \n DELETE FROM obsoletes WHERE pkgKey = old.pkgKey;\ \n END;", "INSERT into db_info values (9, 'direct_create');", NULL }
const char primary_sql_qfmt[] [static] |
const char primary_xml_fini[] = "</metadata>\n" [static] |
const char primary_xml_init[] = "<metadata xmlns=\"http://linux.duke.edu/metadata/common\" xmlns:rpm=\"http://linux.duke.edu/metadata/rpm\" packages=\"0\">\n" [static] |
const char primary_xml_qfmt[] [static] |
const char primary_yaml_qfmt[] [static] |
struct poptOption repoCompressionPoptTable[] [static] |
{ { "uncompressed", '\0', POPT_ARG_VAL, &compression, 0, "don't compress" , NULL }, { "gzip", 'Z', POPT_ARG_VAL, &compression, 1, "use gzip compression" , NULL }, { "bzip2", '\0', POPT_ARG_VAL, &compression, 2, "use bzip2 compression" , NULL }, { "lzma", '\0', POPT_ARG_VAL, &compression, 3, "use lzma compression" , NULL }, { "xz", '\0', POPT_ARG_VAL, &compression, 4, "use xz compression" , NULL }, POPT_TABLEEND }
const char repomd_xml_fini[] = "</repomd>\n" [static] |
const char repomd_xml_init[] [static] |
struct poptOption rpmrepoOptionsTable[] [static] |
{ { NULL, '\0', POPT_ARG_INCLUDE_TABLE, _rpmrepoOptions, 0, "Repository options:" , NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmioFtsPoptTable, 0, "Fts(3) traversal options:" , NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, repoCompressionPoptTable, 0, "Available compressions:" , NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmioDigestPoptTable, 0, "Available digests:" , NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmioAllPoptTable, 0, "Common options for all rpmio executables:" , NULL }, POPT_AUTOALIAS POPT_AUTOHELP POPT_TABLEEND }
const char Sources_qfmt[] [static] |