Sync with 2.5.4.

CVS patchset: 2376
CVS date: 1998/09/28 22:03:28
This commit is contained in:
jbj 1998-09-28 22:03:28 +00:00
parent fd068345e6
commit a88e320d6d
15 changed files with 3872 additions and 4223 deletions

View File

@ -1,4 +1,4 @@
2.5.4 -> 2.9
2.5.5 -> 2.9
- add Slovak translation (Stanislav Meduna <stano@trillian.eunet.sk>)
- gettextify rpmMessage/rpmError/fprintf messages.
- update po files; add cz to catalogs.
@ -16,6 +16,8 @@
- add {init,add,expand}Macro args everywhere (new macro.c compatibility)
- add new fully recursive macro.c
2.5.4 -> 2.5.5:
2.5.3 -> 2.5.4:
- expand args using popt on pre-rpmReadConfigFiles arg pass.
- skip arch checks if only packaging source rpm.

View File

@ -15,9 +15,10 @@ NLSPACKAGE = rpm
CATALOGS = cz.mo de.mo fi.mo fr.mo pt_BR.mo ru.mo sr.mo sv.mo tr.mo
POTFILES = \
../build.c ../checksig.c ../convertdb.c ../ftp.c \
../install.c ../oldrpmdb.c ../query.c ../rpm-qo.c \
../rpm.c ../rpm2cpio.c ../url.c ../verify.c \
../build.c ../checksig.c ../ftp.c \
../install.c ../query.c ../rpm.c \
../url.c ../verify.c \
../rpm2cpio.c ../convertdb.c ../oldrpmdb.c \
../build/build.c ../build/files.c ../build/misc.c ../build/myftw.c \
../build/names.c ../build/pack.c ../build/parseBuildInstallClean.c \
../build/parseChangelog.c ../build/parseDescription.c \

855
po/cz.po

File diff suppressed because it is too large Load Diff

859
po/de.po

File diff suppressed because it is too large Load Diff

849
po/fi.po

File diff suppressed because it is too large Load Diff

866
po/fr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

856
po/ru.po

File diff suppressed because it is too large Load Diff

838
po/sr.po

File diff suppressed because it is too large Load Diff

844
po/sv.po

File diff suppressed because it is too large Load Diff

851
po/tr.po

File diff suppressed because it is too large Load Diff

10
query.c
View File

@ -63,6 +63,7 @@ static void printHeader(Header h, int queryFlags, char * queryFormat) {
if (!headerGetEntry(h, RPMTAG_FILENAMES, &type, (void **) &fileList,
&count)) {
fputs(_("(contains no files)"), stdout);
fputs("\n", stdout);
} else {
if (!headerGetEntry(h, RPMTAG_FILESTATES, &type,
(void **) &fileStatesList, &count)) {
@ -158,6 +159,7 @@ static void printHeader(Header h, int queryFlags, char * queryFormat) {
} else if (!rpmIsVerbose()) {
fputs(fileList[i], stdout);
fputs("\n", stdout);
} else if (fileOwnerList)
printFileInfo(fileList[i], fileSizeList[i],
fileModeList[i], fileMTimeList[i],
@ -190,10 +192,8 @@ static void printHeader(Header h, int queryFlags, char * queryFormat) {
static char * permsString(int mode) {
static char perms[11];
strcpy(perms, "-----------");
strcpy(perms, "----------");
if (mode & S_ISVTX) perms[10] = 't';
if (mode & S_IRUSR) perms[1] = 'r';
if (mode & S_IWUSR) perms[2] = 'w';
if (mode & S_IXUSR) perms[3] = 'x';
@ -206,6 +206,10 @@ static char * permsString(int mode) {
if (mode & S_IWOTH) perms[8] = 'w';
if (mode & S_IXOTH) perms[9] = 'x';
if (mode & S_ISVTX)
perms[9] = ((mode & S_IXOTH) ? 't' : 'T');
if (mode & S_ISUID) {
if (mode & S_IXUSR)
perms[3] = 's';

View File

@ -55,61 +55,61 @@ void printVersion(void) {
}
void printBanner(void) {
fputs(_("Copyright (C) 1995 - Red Hat Software"), stdout);
fputs(_("This may be freely redistributed under the terms of the GNU "
puts(_("Copyright (C) 1995 - Red Hat Software"));
puts(_("This may be freely redistributed under the terms of the GNU "
"Public License"), stdout);
}
void printUsage(void) {
printVersion();
printBanner();
fputs("", stdout);
puts("");
fputs(_("usage: rpm {--help}"), stdout);
fputs(_(" rpm {--version}"), stdout);
fputs(_(" rpm {--query -q} [-afFpP] [-i] [-l] [-s] [-d] [-c] [-v] [-R]"), stdout);
fputs(_(" [--scripts] [--root <dir>] [--rcfile <file>]"), stdout);
fputs(_(" [--whatprovides] [--whatrequires] [--requires]"), stdout);
fputs(_(" [--ftpuseport] [--ftpproxy <host>] [--ftpport <port>]"), stdout);
fputs(_(" [--provides] [--dump] [--dbpath <dir>] [targets]"), stdout);
fputs(_(" rpm {--querytags}"), stdout);
puts(_("usage: rpm {--help}"));
puts(_(" rpm {--version}"));
puts(_(" rpm {--query -q} [-afFpP] [-i] [-l] [-s] [-d] [-c] [-v] [-R]"));
puts(_(" [--scripts] [--root <dir>] [--rcfile <file>]"));
puts(_(" [--whatprovides] [--whatrequires] [--requires]"));
puts(_(" [--ftpuseport] [--ftpproxy <host>] [--ftpport <port>]"));
puts(_(" [--provides] [--dump] [--dbpath <dir>] [targets]"));
puts(_(" rpm {--querytags}"));
}
void printHelp(void) {
printVersion();
printBanner();
fputs(_(""), stdout);
puts(_(""));
fputs(_("usage:"), stdout);
fputs(_(" --help - print this message"), stdout);
fputs(_(" --version - print the version of rpm being used"), stdout);
fputs(_(" all modes support the following arguments:"), stdout);
fputs(_(" -v - be a little more verbose"), stdout);
fputs(_(" -vv - be incredibly verbose (for debugging)"), stdout);
fputs(_(" -q - query mode"), stdout);
fputs(_(" --queryformat <s> - use s as the header format (implies -i)"), stdout);
fputs(_(" Package specification options:"), stdout);
fputs(_(" -a - query all packages"), stdout);
fputs(_(" -f <file>+ - query package owning <file>"), stdout);
fputs(_(" -F - like -f, but read file names from stdin"), stdout);
fputs(_(" -p <packagefile>+ - query (uninstalled) package <packagefile>"), stdout);
fputs(_(" -P - like -p, but read package names from stdin"), stdout);
fputs(_(" --whatprovides <i> - query packages which provide <i> capability"), stdout);
fputs(_(" --whatrequires <i> - query packages which require <i> capability"), stdout);
fputs(_(" Information selection options:"), stdout);
fputs(_(" -i - display package information"), stdout);
fputs(_(" -l - display package file list"), stdout);
fputs(_(" -s - show file states (implies -l)"), stdout);
fputs(_(" -d - list only documentation files (implies -l)"), stdout);
fputs(_(" -c - list only configuration files (implies -l)"), stdout);
fputs(_(" --dump - show all verifiable information for each file"), stdout);
fputs(_(" (must be used with -l, -c, or -d)"), stdout);
fputs(_(" --provides - list capabilbities package provides"), stdout);
fputs(_(" --requires"), stdout);
fputs(_(" -R - list package dependencies"), stdout);
fputs(_(" --scripts - print the various [un]install scripts"), stdout);
fputs(_(""), stdout);
fputs(_(" --querytags - list the tags that can be used in a query format"), stdout);
puts(_("usage:"));
puts(_(" --help - print this message"));
puts(_(" --version - print the version of rpm being used"));
puts(_(" all modes support the following arguments:"));
puts(_(" -v - be a little more verbose"));
puts(_(" -vv - be incredibly verbose (for debugging)"));
puts(_(" -q - query mode"));
puts(_(" --queryformat <s> - use s as the header format (implies -i)"));
puts(_(" Package specification options:"));
puts(_(" -a - query all packages"));
puts(_(" -f <file>+ - query package owning <file>"));
puts(_(" -F - like -f, but read file names from stdin"));
puts(_(" -p <packagefile>+ - query (uninstalled) package <packagefile>"));
puts(_(" -P - like -p, but read package names from stdin"));
puts(_(" --whatprovides <i> - query packages which provide <i> capability"));
puts(_(" --whatrequires <i> - query packages which require <i> capability"));
puts(_(" Information selection options:"));
puts(_(" -i - display package information"));
puts(_(" -l - display package file list"));
puts(_(" -s - show file states (implies -l)"));
puts(_(" -d - list only documentation files (implies -l)"));
puts(_(" -c - list only configuration files (implies -l)"));
puts(_(" --dump - show all verifiable information for each file"));
puts(_(" (must be used with -l, -c, or -d)"));
puts(_(" --provides - list capabilbities package provides"));
puts(_(" --requires"));
puts(_(" -R - list package dependencies"));
puts(_(" --scripts - print the various [un]install scripts"));
puts(_(""));
puts(_(" --querytags - list the tags that can be used in a query format"));
}
int main(int argc, char ** argv) {

304
rpm.c
View File

@ -189,62 +189,62 @@ static void printVersion(void) {
}
static void printBanner(void) {
fputs(_("Copyright (C) 1998 - Red Hat Software"), stdout);
fputs(_("This may be freely redistributed under the terms of the GNU "
"Public License"), stdout);
puts(_("Copyright (C) 1998 - Red Hat Software"));
puts(_("This may be freely redistributed under the terms of the GNU "
"Public License"));
}
static void printUsage(void) {
printVersion();
printBanner();
fputs(_(""), stdout);
puts(_(""));
fputs(_("usage: rpm {--help}"), stdout);
fputs(_(" rpm {--version}"), stdout);
fputs(_(" rpm {--initdb} [--dbpath <dir>]"), stdout);
fputs(_(" rpm {--install -i} [-v] [--hash -h] [--percent] [--force] [--test]"), stdout);
fputs(_(" [--replacepkgs] [--replacefiles] [--root <dir>]"), stdout);
fputs(_(" [--excludedocs] [--includedocs] [--noscripts]"), stdout);
fputs(_(" [--rcfile <file>] [--ignorearch] [--dbpath <dir>]"), stdout);
fputs(_(" [--prefix <dir>] [--ignoreos] [--nodeps] [--allfiles]"), stdout);
fputs(_(" [--ftpproxy <host>] [--ftpport <port>] [--justdb]"), stdout);
fputs(_(" [--noorder] [--relocate oldpath=newpath]"), stdout);
fputs(_(" [--badreloc] [--notriggers] file1.rpm ... fileN.rpm"), stdout);
fputs(_(" rpm {--upgrade -U} [-v] [--hash -h] [--percent] [--force] [--test]"), stdout);
fputs(_(" [--oldpackage] [--root <dir>] [--noscripts]"), stdout);
fputs(_(" [--excludedocs] [--includedocs] [--rcfile <file>]"), stdout);
fputs(_(" [--ignorearch] [--dbpath <dir>] [--prefix <dir>] "), stdout);
fputs(_(" [--ftpproxy <host>] [--ftpport <port>]"), stdout);
fputs(_(" [--ignoreos] [--nodeps] [--allfiles] [--justdb]"), stdout);
fputs(_(" [--noorder] [--relocate oldpath=newpath]"), stdout);
fputs(_(" [--badreloc] file1.rpm ... fileN.rpm"), stdout);
fputs(_(" rpm {--query -q} [-afpg] [-i] [-l] [-s] [-d] [-c] [-v] [-R]"), stdout);
fputs(_(" [--scripts] [--root <dir>] [--rcfile <file>]"), stdout);
fputs(_(" [--whatprovides] [--whatrequires] [--requires]"), stdout);
fputs(_(" [--triggeredby] [--ftpuseport] [--ftpproxy <host>]"), stdout);
fputs(_(" [--ftpport <port>] [--provides] [--triggers] [--dump]"), stdout);
fputs(_(" [--changelog] [--dbpath <dir>] [targets]"), stdout);
fputs(_(" rpm {--verify -V -y} [-afpg] [--root <dir>] [--rcfile <file>]"), stdout);
fputs(_(" [--dbpath <dir>] [--nodeps] [--nofiles] [--noscripts]"), stdout);
fputs(_(" [--nomd5] [targets]"), stdout);
fputs(_(" rpm {--setperms} [-afpg] [target]"), stdout);
fputs(_(" rpm {--setugids} [-afpg] [target]"), stdout);
fputs(_(" rpm {--erase -e} [--root <dir>] [--noscripts] [--rcfile <file>]"), stdout);
fputs(_(" [--dbpath <dir>] [--nodeps] [--allmatches]"), stdout);
fputs(_(" [--justdb] [--notriggers] rpackage1 ... packageN"), stdout);
fputs(_(" rpm {-b|t}[plciba] [-v] [--short-circuit] [--clean] [--rcfile <file>]"), stdout);
fputs(_(" [--sign] [--test] [--timecheck <s>] ]"), stdout);
fputs(_(" [--buildplatform=platform1[,platform2...]]"), stdout);
fputs(_(" [--rmsource] specfile"), stdout);
fputs(_(" rpm {--rmsource} [--rcfile <file>] [-v] specfile"), stdout);
fputs(_(" rpm {--rebuild} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"), stdout);
fputs(_(" rpm {--recompile} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"), stdout);
fputs(_(" rpm {--resign} [--rcfile <file>] package1 package2 ... packageN"), stdout);
fputs(_(" rpm {--addsign} [--rcfile <file>] package1 package2 ... packageN"), stdout);
fputs(_(" rpm {--checksig -K} [--nopgp] [--nomd5] [--rcfile <file>]"), stdout);
fputs(_(" package1 ... packageN"), stdout);
fputs(_(" rpm {--rebuilddb} [--rcfile <file>] [--dbpath <dir>]"), stdout);
fputs(_(" rpm {--querytags}"), stdout);
puts(_("usage: rpm {--help}"));
puts(_(" rpm {--version}"));
puts(_(" rpm {--initdb} [--dbpath <dir>]"));
puts(_(" rpm {--install -i} [-v] [--hash -h] [--percent] [--force] [--test]"));
puts(_(" [--replacepkgs] [--replacefiles] [--root <dir>]"));
puts(_(" [--excludedocs] [--includedocs] [--noscripts]"));
puts(_(" [--rcfile <file>] [--ignorearch] [--dbpath <dir>]"));
puts(_(" [--prefix <dir>] [--ignoreos] [--nodeps] [--allfiles]"));
puts(_(" [--ftpproxy <host>] [--ftpport <port>] [--justdb]"));
puts(_(" [--noorder] [--relocate oldpath=newpath]"));
puts(_(" [--badreloc] [--notriggers] file1.rpm ... fileN.rpm"));
puts(_(" rpm {--upgrade -U} [-v] [--hash -h] [--percent] [--force] [--test]"));
puts(_(" [--oldpackage] [--root <dir>] [--noscripts]"));
puts(_(" [--excludedocs] [--includedocs] [--rcfile <file>]"));
puts(_(" [--ignorearch] [--dbpath <dir>] [--prefix <dir>] "));
puts(_(" [--ftpproxy <host>] [--ftpport <port>]"));
puts(_(" [--ignoreos] [--nodeps] [--allfiles] [--justdb]"));
puts(_(" [--noorder] [--relocate oldpath=newpath]"));
puts(_(" [--badreloc] file1.rpm ... fileN.rpm"));
puts(_(" rpm {--query -q} [-afpg] [-i] [-l] [-s] [-d] [-c] [-v] [-R]"));
puts(_(" [--scripts] [--root <dir>] [--rcfile <file>]"));
puts(_(" [--whatprovides] [--whatrequires] [--requires]"));
puts(_(" [--triggeredby] [--ftpuseport] [--ftpproxy <host>]"));
puts(_(" [--ftpport <port>] [--provides] [--triggers] [--dump]"));
puts(_(" [--changelog] [--dbpath <dir>] [targets]"));
puts(_(" rpm {--verify -V -y} [-afpg] [--root <dir>] [--rcfile <file>]"));
puts(_(" [--dbpath <dir>] [--nodeps] [--nofiles] [--noscripts]"));
puts(_(" [--nomd5] [targets]"));
puts(_(" rpm {--setperms} [-afpg] [target]"));
puts(_(" rpm {--setugids} [-afpg] [target]"));
puts(_(" rpm {--erase -e} [--root <dir>] [--noscripts] [--rcfile <file>]"));
puts(_(" [--dbpath <dir>] [--nodeps] [--allmatches]"));
puts(_(" [--justdb] [--notriggers] rpackage1 ... packageN"));
puts(_(" rpm {-b|t}[plciba] [-v] [--short-circuit] [--clean] [--rcfile <file>]"));
puts(_(" [--sign] [--test] [--timecheck <s>] ]"));
puts(_(" [--buildplatform=platform1[,platform2...]]"));
puts(_(" [--rmsource] specfile"));
puts(_(" rpm {--rmsource} [--rcfile <file>] [-v] specfile"));
puts(_(" rpm {--rebuild} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"));
puts(_(" rpm {--recompile} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"));
puts(_(" rpm {--resign} [--rcfile <file>] package1 package2 ... packageN"));
puts(_(" rpm {--addsign} [--rcfile <file>] package1 package2 ... packageN"));
puts(_(" rpm {--checksig -K} [--nopgp] [--nomd5] [--rcfile <file>]"));
puts(_(" package1 ... packageN"));
puts(_(" rpm {--rebuilddb} [--rcfile <file>] [--dbpath <dir>]"));
puts(_(" rpm {--querytags}"));
}
static void printHelpLine(char * prefix, char * help) {
@ -270,212 +270,212 @@ static void printHelpLine(char * prefix, char * help) {
helpLength = strlen(help);
}
if (helpLength) fputs(help, stdout);
if (helpLength) puts(help);
}
static void printHelp(void) {
printVersion();
printBanner();
fputs(_(""), stdout);
puts(_(""));
fputs(_("usage:"), stdout);
printHelpLine(" --help ",
puts( _("usage:"));
printHelpLine( " --help ",
_("print this message"));
printHelpLine(" --version ",
printHelpLine( " --version ",
_("print the version of rpm being used"));
fputs(_(" all modes support the following arguments:"), stdout);
puts( _(" all modes support the following arguments:"));
printHelpLine(_(" --rcfile <file> "),
_("use <file> instead of /etc/rpmrc and $HOME/.rpmrc"));
printHelpLine(" -v ",
printHelpLine( " -v ",
_("be a little more verbose"));
printHelpLine(" -vv ",
printHelpLine( " -vv ",
_("be incredibly verbose (for debugging)"));
printHelpLine(" -q ",
printHelpLine( " -q ",
_("query mode"));
printHelpLine(_(" --root <dir> "),
_("use <dir> as the top level directory"));
printHelpLine(_(" --dbpath <dir> "),
_("use <dir> as the directory for the database"));
printHelpLine(_(" --queryformat <qfmt> "),
_("use qfmt as the header format (implies -i)"));
fputs(_(" install, upgrade and query (with -p) allow ftp URL's to be used in place"), stdout);
fputs(_(" of file names as well as the following options:\n"), stdout);
printHelpLine(_(" --queryformat <qfmt>"),
_("use <qfmt> as the header format (implies -i)"));
puts( _(" install, upgrade and query (with -p) allow ftp URL's to be used in place"));
puts( _(" of file names as well as the following options:"));
printHelpLine(_(" --ftpproxy <host> "),
_("hostname or IP of ftp proxy"));
printHelpLine(_(" --ftpport <port> "),
_("port number of ftp server (or proxy)"));
fputs( _(" Package specification options:"), stdout);
puts( _(" Package specification options:"));
printHelpLine( " -a ",
_("query all packages"));
printHelpLine(_(" -f <file>+ "),
_("query package owning <file>"));
printHelpLine(_(" -p <packagefile>+ "),
_("query (uninstalled) package <packagefile>"));
printHelpLine(_(" --triggeredby <package>"),
_("query packages triggered by <package>"));
printHelpLine(_(" --whatprovides <icap>"),
_("query packages which provide <icap> capability"));
printHelpLine(_(" --whatrequires <icap>"),
_("query packages which require <icap> capability"));
fputs(_(" Information selection options:"), stdout);
printHelpLine(" -i ",
printHelpLine(_(" --triggeredby <pkg>"),
_("query packages triggered by <pkg>"));
printHelpLine(_(" --whatprovides <cap>"),
_("query packages which provide <cap> capability"));
printHelpLine(_(" --whatrequires <cap>"),
_("query packages which require <cap> capability"));
puts( _(" Information selection options:"));
printHelpLine( " -i ",
_("display package information"));
printHelpLine(" --changelog ",
printHelpLine( " --changelog ",
_("display the package's change log"));
printHelpLine(" -l ",
printHelpLine( " -l ",
_("display package file list"));
printHelpLine(" -s ",
printHelpLine( " -s ",
_("show file states (implies -l)"));
printHelpLine(" -d ",
printHelpLine( " -d ",
_("list only documentation files (implies -l)"));
printHelpLine(" -c ",
printHelpLine( " -c ",
_("list only configuration files (implies -l)"));
printHelpLine(" --dump ",
printHelpLine( " --dump ",
_("show all verifiable information for each file (must be used with -l, -c, or -d)"));
printHelpLine(" --provides ",
printHelpLine( " --provides ",
_("list capabilities package provides"));
fputs( _(" --requires"), stdout);
printHelpLine(" -R ",
puts( _(" --requires"));
printHelpLine( " -R ",
_("list package dependencies"));
printHelpLine(" --scripts ",
printHelpLine( " --scripts ",
_("print the various [un]install scripts"));
printHelpLine(" --triggers ",
printHelpLine(" --triggers ",
_("show the trigger scripts contained in the package"));
fputs( "", stdout);
fputs( " -V", stdout);
fputs( " -y", stdout);
printHelpLine(_(" --pipe <cmd> "),
puts("");
puts( " -V");
puts( " -y");
printHelpLine(_(" --pipe <cmd> "),
_("send stdout to <cmd>"));
printHelpLine(" --verify ",
printHelpLine( " --verify ",
_("verify a package installation using the same same package specification options as -q"));
printHelpLine(_(" --dbpath <dir> "),
_("use <dir> as the directory for the database"));
printHelpLine(_(" --root <dir> "),
_("use <dir> as the top level directory"));
printHelpLine(" --nodeps ",
printHelpLine( " --nodeps ",
_("do not verify package dependencies"));
printHelpLine(" --nomd5 ",
printHelpLine( " --nomd5 ",
_("do not verify file md5 checksums"));
printHelpLine(" --nofiles ",
printHelpLine( " --nofiles ",
_("do not verify file attributes"));
fputs("", stdout);
printHelpLine(" --setperms ",
puts("");
printHelpLine( " --setperms ",
_("set the file permissions to those in the package database"
" using the same package specification options as -q"));
printHelpLine(" --setugids ",
printHelpLine( " --setugids ",
_("set the file owner and group to those in the package "
"database using the same package specification options as "
"-q"));
fputs("", stdout);
fputs( _(" --install <packagefile>"), stdout);
puts("");
puts( _(" --install <packagefile>"));
printHelpLine(_(" -i <packagefile> "),
_("install package"));
printHelpLine(_(" --relocate <oldpath>=<newpath>"),
_("relocate files from <oldpath> to <newpath>"));
printHelpLine(" --badreloc",
printHelpLine( " --badreloc",
_("relocate files even though the package doesn't allow it"));
printHelpLine(_(" --prefix <dir> "),
_("relocate the package to <dir>, if relocatable"));
printHelpLine(_(" --dbpath <dir> "),
_("use <dir> as the directory for the database"));
printHelpLine(" --excludedocs ",
printHelpLine( " --excludedocs ",
_("do not install documentation"));
printHelpLine(" --force ",
printHelpLine( " --force ",
_("short hand for --replacepkgs --replacefiles"));
fputs( " -h", stdout);
printHelpLine(" --hash ",
puts( " -h");
printHelpLine( " --hash ",
_("print hash marks as package installs (good with -v)"));
printHelpLine(" --allfiles ",
printHelpLine( " --allfiles ",
_("install all files, even configurations which might "
"otherwise be skipped"));
printHelpLine(" --ignorearch ",
printHelpLine( " --ignorearch ",
_("don't verify package architecture"));
printHelpLine(" --ignoreos ",
printHelpLine( " --ignoreos ",
_("don't verify package operating system"));
printHelpLine(" --includedocs ",
printHelpLine( " --includedocs ",
_("install documentation"));
printHelpLine(" --justdb ",
printHelpLine( " --justdb ",
_("update the database, but do not modify the filesystem"));
printHelpLine(" --nodeps ",
printHelpLine( " --nodeps ",
_("do not verify package dependencies"));
printHelpLine(" --noorder ",
printHelpLine( " --noorder ",
_("do not reorder package installation to satisfy dependencies"));
printHelpLine(" --noscripts ",
printHelpLine( " --noscripts ",
_("don't execute any installation scripts"));
printHelpLine(" --notriggers ",
printHelpLine( " --notriggers ",
_("don't execute any scripts triggered by this package"));
printHelpLine(" --percent ",
printHelpLine( " --percent ",
_("print percentages as package installs"));
printHelpLine(" --replacefiles ",
printHelpLine( " --replacefiles ",
_("install even if the package replaces installed files"));
printHelpLine(" --replacepkgs ",
printHelpLine( " --replacepkgs ",
_("reinstall if the package is already present"));
printHelpLine(_(" --root <dir> "),
_("use <dir> as the top level directory"));
printHelpLine(" --test ",
printHelpLine( " --test ",
_("don't install, but tell if it would work or not"));
fputs("", stdout);
fputs( _(" --upgrade <packagefile>"), stdout);
puts("");
puts( _(" --upgrade <packagefile>"));
printHelpLine(_(" -U <packagefile> "),
_("upgrade package (same options as --install, plus)"));
printHelpLine(" --oldpackage ",
printHelpLine( " --oldpackage ",
_("upgrade to an old version of the package (--force on upgrades does this automatically)"));
fputs("", stdout);
fputs( _(" --erase <package>"), stdout);
printHelpLine(" -e <package> ",
puts("");
puts( _(" --erase <package>"));
printHelpLine( " -e <package> ",
_("erase (uninstall) package"));
printHelpLine(" --allmatches ",
printHelpLine( " --allmatches ",
_("remove all packages which match <package> (normally an error is generated if <package> specified multiple packages)"));
printHelpLine(_(" --dbpath <dir> "),
_("use <dir> as the directory for the database"));
printHelpLine(" --justdb ",
printHelpLine( " --justdb ",
_("update the database, but do not modify the filesystem"));
printHelpLine(" --nodeps ",
printHelpLine( " --nodeps ",
_("do not verify package dependencies"));
printHelpLine(" --noorder ",
printHelpLine( " --noorder ",
_("do not reorder package installation to satisfy dependencies"));
printHelpLine(" --noscripts ",
printHelpLine( " --noscripts ",
_("do not execute any package specific scripts"));
printHelpLine(" --notriggers ",
printHelpLine( " --notriggers ",
_("don't execute any scripts triggered by this package"));
printHelpLine(_(" --root <dir> "),
_("use <dir> as the top level directory"));
fputs("", stdout);
fputs( _(" -b<stage> <spec> "), stdout);
printHelpLine(_(" -t<stage> <tarball> "),
puts("");
puts( _(" -b<stage> <spec> "));
printHelpLine(_(" -t<stage> <tarball> "),
_("build package, where <stage> is one of:"));
printHelpLine(" p ",
printHelpLine( " p ",
_("prep (unpack sources and apply patches)"));
printHelpLine(" l ",
printHelpLine( " l ",
_("list check (do some cursory checks on %files)"));
printHelpLine(" c ",
printHelpLine( " c ",
_("compile (prep and compile)"));
printHelpLine(" i ",
printHelpLine( " i ",
_("install (prep, compile, install)"));
printHelpLine(" b ",
printHelpLine( " b ",
_("binary package (prep, compile, install, package)"));
printHelpLine(" a ",
printHelpLine( " a ",
_("bin/src package (prep, compile, install, package)"));
printHelpLine(" --short-circuit ",
printHelpLine( " --short-circuit ",
_("skip straight to specified stage (only for c,i)"));
printHelpLine(" --clean ",
printHelpLine( " --clean ",
_("remove build tree when done"));
printHelpLine(" --rmsource ",
printHelpLine( " --rmsource ",
_("remove sources and spec file when done"));
printHelpLine(" --sign ",
printHelpLine( " --sign ",
_("generate PGP signature"));
printHelpLine(_(" --buildroot <dir> "),
printHelpLine(_(" --buildroot <dir> "),
_("use <dir> as the build root"));
printHelpLine(_(" --platform=<platform>+"),
_("build the packages for the platform1...platformN build targets."));
printHelpLine(" --test ",
printHelpLine( " --test ",
_("do not execute any stages"));
printHelpLine(_(" --timecheck <secs> "),
_("set the time check to <secs> seconds (0 disables it)"));
fputs("", stdout);
printHelpLine(_(" --timecheck <secs> "),
_("set the time check to <secs> seconds (0 disables)"));
puts("");
printHelpLine(_(" --rebuild <src_pkg> "),
_("install source package, build binary package and remove spec file, sources, patches, and icons."));
printHelpLine(_(" --rmsource <spec> "),
printHelpLine(_(" --rmsource <spec> "),
_("remove sources and spec file"));
printHelpLine(_(" --recompile <src_pkg> "),
_("like --rebuild, but don't build any package"));
@ -483,22 +483,22 @@ static void printHelp(void) {
_("sign a package (discard current signature)"));
printHelpLine(_(" --addsign <pkg>+ "),
_("add a signature to a package"));
fputs( " -K", stdout);
puts( " -K");
printHelpLine(_(" --checksig <pkg>+ "),
_("verify package signature"));
printHelpLine(" --nopgp ",
printHelpLine( " --nopgp ",
_("skip any PGP signatures"));
printHelpLine(" --nomd5 ",
printHelpLine( " --nomd5 ",
_("skip any MD5 signatures"));
printHelpLine(" --querytags ",
printHelpLine( " --querytags ",
_("list the tags that can be used in a query format"));
printHelpLine(" --initdb ",
printHelpLine( " --initdb ",
_("make sure a valid database exists"));
printHelpLine(" --rebuilddb ",
printHelpLine( " --rebuilddb ",
_("rebuild database from existing database"));
printHelpLine(_(" --dbpath <dir> "),
_("use <dir> as the directory for the database"));
printHelpLine(" --root <dir> ",
printHelpLine( " --root <dir> ",
_("use <dir> as the top level directory"));
}

View File

@ -40,7 +40,7 @@ rpm alias -R --requires
rpm alias --info --qf 'Name : %-27{NAME} Distribution: %{DISTRIBUTION}\n\
Version : %-27{VERSION} Vendor: %{VENDOR}\n\
Release : %-27{RELEASE} Build Date: %{BUILDTIME:date}\n\
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
Install date: %|INSTALLTIME?{%-27{INSTALLTIME:date}}:{(not installed) }| Build Host: %{BUILDHOST}\n\
Group : %-27{GROUP} Source RPM: %{SOURCERPM}\n\
Size : %-27{SIZE}%|LICENSE?{ License: %{LICENSE}}|\n\
%|PACKAGER?{Packager : %{PACKAGER}\n}|\