build/files.c: Remove dead code.
lib/cpio.c: Open file to be installed with "w" not "r+". lib/fprint.c: Use variable length string keys for rpmdbFindByFile cache. CVS patchset: 3433 CVS date: 1999/11/24 16:16:17
This commit is contained in:
parent
4221ce1aa1
commit
5144525bbc
|
@ -932,26 +932,7 @@ static int addFile(struct FileList *fl, const char * diskURL, struct stat *statp
|
||||||
const char *fileGname;
|
const char *fileGname;
|
||||||
char *lang;
|
char *lang;
|
||||||
|
|
||||||
if (_debug)
|
|
||||||
fprintf(stderr, "*** AF ENTRY buildRootURL %s fileURL %s diskURL %s\n", fl->buildRootURL, fileURL, diskURL);
|
|
||||||
/* Path may have prepended buildRootURL, so locate the original filename. */
|
/* Path may have prepended buildRootURL, so locate the original filename. */
|
||||||
#ifdef DYING
|
|
||||||
{ const char *s;
|
|
||||||
char c;
|
|
||||||
|
|
||||||
if ((s = fl->buildRootURL) != NULL) {
|
|
||||||
c = '\0';
|
|
||||||
while (*s) {
|
|
||||||
if (c == '/' && !(s[0] == '/' && s[1] == ':'))
|
|
||||||
while(*s && *s == '/') s++;
|
|
||||||
if (*s) {
|
|
||||||
fileURL++;
|
|
||||||
c = *s++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
/*
|
/*
|
||||||
* XXX There are 3 types of entry into addFile:
|
* XXX There are 3 types of entry into addFile:
|
||||||
*
|
*
|
||||||
|
@ -967,9 +948,6 @@ fprintf(stderr, "*** AF ENTRY buildRootURL %s fileURL %s diskURL %s\n", fl->buil
|
||||||
if (fl->buildRootURL && strcmp(fl->buildRootURL, "/"))
|
if (fl->buildRootURL && strcmp(fl->buildRootURL, "/"))
|
||||||
fileURL += strlen(fl->buildRootURL);
|
fileURL += strlen(fl->buildRootURL);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if (_debug)
|
|
||||||
fprintf(stderr, "*** AF STRIP buildRootURL %s fileURL %s diskURL %s\n", fl->buildRootURL, fileURL, diskURL);
|
|
||||||
|
|
||||||
/* If we are using a prefix, validate the file */
|
/* If we are using a prefix, validate the file */
|
||||||
if (!fl->inFtw && fl->prefix) {
|
if (!fl->inFtw && fl->prefix) {
|
||||||
|
@ -1137,46 +1115,14 @@ fprintf(stderr, "*** PBF fileURL %s\n", fileURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy file name or glob pattern removing multiple "/" chars. */
|
/* Copy file name or glob pattern removing multiple "/" chars. */
|
||||||
#ifdef DYING
|
|
||||||
{ const char *s;
|
|
||||||
char c, *t = alloca((fl->buildRootURL ? strlen(fl->buildRootURL) : 0) +
|
|
||||||
strlen(fileURL) + 1);
|
|
||||||
|
|
||||||
fn = t;
|
|
||||||
*t = c = '\0';
|
|
||||||
|
|
||||||
/* With a buildroot, prepend the buildRootURL now. */
|
|
||||||
if ((s = fl->buildRootURL) != NULL) {
|
|
||||||
while (*s) {
|
|
||||||
if (c == '/' && !(s[0] == '/' && s[1] == ':'))
|
|
||||||
while(*s && *s == '/') s++;
|
|
||||||
if (*s)
|
|
||||||
*t++ = c = *s++;
|
|
||||||
}
|
|
||||||
while (t > fn && t[-1] == '/') t--;
|
|
||||||
*t = '\0';
|
|
||||||
}
|
|
||||||
if ((s = fileName) != NULL) {
|
|
||||||
while (*s) {
|
|
||||||
if (c == '/' && !(s[0] == '/' && s[1] == ':'))
|
|
||||||
while(*s && *s == '/') s++;
|
|
||||||
if (*s)
|
|
||||||
*t++ = c = *s++;
|
|
||||||
}
|
|
||||||
while (t > fn && t[-1] == '/') t--;
|
|
||||||
*t = '\0';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
/*
|
/*
|
||||||
* Note: rpmGetPath should guarantee a "canonical" path. That means
|
* Note: rpmGetPath should guarantee a "canonical" path. That means
|
||||||
* that the following pathologies should be weeded out:
|
* that the following pathologies should be weeded out:
|
||||||
* //bin//sh
|
* //bin//sh
|
||||||
* //usr//bin/
|
* //usr//bin/
|
||||||
* /.././../usr/../bin//./sh (XXX FIXME: dots not handled yet)
|
* /.././../usr/../bin//./sh
|
||||||
*/
|
*/
|
||||||
diskURL = rpmGenPath(fl->buildRootURL, NULL, fileURL);
|
diskURL = rpmGenPath(fl->buildRootURL, NULL, fileURL);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (doGlob) {
|
if (doGlob) {
|
||||||
const char * diskRoot;
|
const char * diskRoot;
|
||||||
|
|
|
@ -341,7 +341,7 @@ static int expandRegular(FD_t cfd, struct cpioHeader * hdr,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ofd = Fopen(hdr->path, "r+.ufdio");
|
ofd = Fopen(hdr->path, "w.ufdio");
|
||||||
if (ofd == NULL || Ferror(ofd))
|
if (ofd == NULL || Ferror(ofd))
|
||||||
return CPIOERR_OPEN_FAILED;
|
return CPIOERR_OPEN_FAILED;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ fingerPrintCache fpCacheCreate(int sizeHint)
|
||||||
fingerPrintCache fpc;
|
fingerPrintCache fpc;
|
||||||
|
|
||||||
fpc = xmalloc(sizeof(*fpc));
|
fpc = xmalloc(sizeof(*fpc));
|
||||||
fpc->ht = htCreate(sizeHint * 2, sizeof(char *), 1, hashFunctionString,
|
fpc->ht = htCreate(sizeHint * 2, 0, 1, hashFunctionString,
|
||||||
hashEqualityString);
|
hashEqualityString);
|
||||||
return fpc;
|
return fpc;
|
||||||
}
|
}
|
||||||
|
|
112
po/rpm.pot
112
po/rpm.pot
|
@ -6,7 +6,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"POT-Creation-Date: 1999-11-23 18:43-0500\n"
|
"POT-Creation-Date: 1999-11-24 11:06-0500\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -1382,82 +1382,82 @@ msgstr ""
|
||||||
msgid "File listed twice: %s"
|
msgid "File listed twice: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:987
|
#: build/files.c:965
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "File doesn't match prefix (%s): %s"
|
msgid "File doesn't match prefix (%s): %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:997
|
#: build/files.c:975
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "File not found: %s"
|
msgid "File not found: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1040
|
#: build/files.c:1018
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Bad owner/group: %s\n"
|
msgid "Bad owner/group: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1054
|
#: build/files.c:1032
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "File %4d: %07o %s.%s\t %s\n"
|
msgid "File %4d: %07o %s.%s\t %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1133
|
#: build/files.c:1111
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "File needs leading \"/\": %s"
|
msgid "File needs leading \"/\": %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1194
|
#: build/files.c:1140
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "File not found by glob: %s"
|
msgid "File not found by glob: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1273
|
#: build/files.c:1219
|
||||||
msgid "Could not open %%files file %s: %s"
|
msgid "Could not open %%files file %s: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1280 build/pack.c:480
|
#: build/files.c:1226 build/pack.c:480
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "line: %s"
|
msgid "line: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1623 build/parsePrep.c:30
|
#: build/files.c:1569 build/parsePrep.c:30
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Bad owner/group: %s"
|
msgid "Bad owner/group: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. XXX this error message is probably not seen.
|
#. XXX this error message is probably not seen.
|
||||||
#: build/files.c:1678
|
#: build/files.c:1624
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Couldn't exec %s: %s"
|
msgid "Couldn't exec %s: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1683
|
#: build/files.c:1629
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Couldn't fork %s: %s"
|
msgid "Couldn't fork %s: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1765
|
#: build/files.c:1711
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%s failed"
|
msgid "%s failed"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1769
|
#: build/files.c:1715
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "failed to write all data to %s"
|
msgid "failed to write all data to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1858
|
#: build/files.c:1804
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Finding %s: (using %s)...\n"
|
msgid "Finding %s: (using %s)...\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:1886 build/files.c:1895
|
#: build/files.c:1832 build/files.c:1841
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to find %s:"
|
msgid "Failed to find %s:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/files.c:2001
|
#: build/files.c:1947
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Processing files: %s-%s-%s\n"
|
msgid "Processing files: %s-%s-%s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1938,41 +1938,41 @@ msgstr ""
|
||||||
msgid "can't unlink %s: %s\n"
|
msgid "can't unlink %s: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:527
|
#: lib/cpio.c:529
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "getNextHeader: %s\n"
|
msgid "getNextHeader: %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:992
|
#: lib/cpio.c:996
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "(error 0x%x)"
|
msgid "(error 0x%x)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:995
|
#: lib/cpio.c:999
|
||||||
msgid "Bad magic"
|
msgid "Bad magic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:996
|
#: lib/cpio.c:1000
|
||||||
msgid "Bad/unreadable header"
|
msgid "Bad/unreadable header"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:1014
|
#: lib/cpio.c:1018
|
||||||
msgid "Header size too big"
|
msgid "Header size too big"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:1015
|
#: lib/cpio.c:1019
|
||||||
msgid "Unknown file type"
|
msgid "Unknown file type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:1016
|
#: lib/cpio.c:1020
|
||||||
msgid "Missing hard link"
|
msgid "Missing hard link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:1017
|
#: lib/cpio.c:1021
|
||||||
msgid "Internal error"
|
msgid "Internal error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/cpio.c:1026
|
#: lib/cpio.c:1030
|
||||||
msgid " failed - "
|
msgid " failed - "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2857,76 +2857,76 @@ msgid ""
|
||||||
"database"
|
"database"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:462
|
#: lib/rpmdb.c:471
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "package %s not listed in %s"
|
msgid "package %s not listed in %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:473
|
#: lib/rpmdb.c:482
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "package %s not found in %s"
|
msgid "package %s not found in %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:497 lib/uninstall.c:86
|
#: lib/rpmdb.c:506 lib/uninstall.c:86
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot read header at %d for uninstall"
|
msgid "cannot read header at %d for uninstall"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:505
|
#: lib/rpmdb.c:514
|
||||||
msgid "package has no name"
|
msgid "package has no name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:507
|
#: lib/rpmdb.c:516
|
||||||
msgid "removing name index\n"
|
msgid "removing name index\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:512
|
#: lib/rpmdb.c:521
|
||||||
msgid "package has no group\n"
|
msgid "package has no group\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:514
|
#: lib/rpmdb.c:523
|
||||||
msgid "removing group index\n"
|
msgid "removing group index\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:521
|
#: lib/rpmdb.c:530
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "removing provides index for %s\n"
|
msgid "removing provides index for %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:536
|
#: lib/rpmdb.c:545
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "removing requiredby index for %s\n"
|
msgid "removing requiredby index for %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:548
|
#: lib/rpmdb.c:557
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "removing trigger index for %s\n"
|
msgid "removing trigger index for %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:559
|
#: lib/rpmdb.c:568
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "removing conflict index for %s\n"
|
msgid "removing conflict index for %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:570
|
#: lib/rpmdb.c:579
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "removing file index for %s\n"
|
msgid "removing file index for %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:579
|
#: lib/rpmdb.c:588
|
||||||
msgid "package has no files\n"
|
msgid "package has no files\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:662
|
#: lib/rpmdb.c:671
|
||||||
msgid "cannot allocate space for database"
|
msgid "cannot allocate space for database"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:721
|
#: lib/rpmdb.c:730
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "cannot read header at %d for update"
|
msgid "cannot read header at %d for update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmdb.c:730
|
#: lib/rpmdb.c:739
|
||||||
msgid "header changed size!"
|
msgid "header changed size!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3027,59 +3027,59 @@ msgstr ""
|
||||||
msgid "Installing %s\n"
|
msgid "Installing %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:686
|
#: lib/rpmio.c:679
|
||||||
msgid "Success"
|
msgid "Success"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:689
|
#: lib/rpmio.c:682
|
||||||
msgid "Bad server response"
|
msgid "Bad server response"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:692
|
#: lib/rpmio.c:685
|
||||||
msgid "Server IO error"
|
msgid "Server IO error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:695
|
#: lib/rpmio.c:688
|
||||||
msgid "Server timeout"
|
msgid "Server timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:698
|
#: lib/rpmio.c:691
|
||||||
msgid "Unable to lookup server host address"
|
msgid "Unable to lookup server host address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:701
|
#: lib/rpmio.c:694
|
||||||
msgid "Unable to lookup server host name"
|
msgid "Unable to lookup server host name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:704
|
#: lib/rpmio.c:697
|
||||||
msgid "Failed to connect to server"
|
msgid "Failed to connect to server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:707
|
#: lib/rpmio.c:700
|
||||||
msgid "Failed to establish data connection to server"
|
msgid "Failed to establish data connection to server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:710
|
#: lib/rpmio.c:703
|
||||||
msgid "IO error to local file"
|
msgid "IO error to local file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:713
|
#: lib/rpmio.c:706
|
||||||
msgid "Error setting remote server to passive mode"
|
msgid "Error setting remote server to passive mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:716
|
#: lib/rpmio.c:709
|
||||||
msgid "File not found on server"
|
msgid "File not found on server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:719
|
#: lib/rpmio.c:712
|
||||||
msgid "Abort in progress"
|
msgid "Abort in progress"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:723
|
#: lib/rpmio.c:716
|
||||||
msgid "Unknown or unexpected error"
|
msgid "Unknown or unexpected error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/rpmio.c:1244
|
#: lib/rpmio.c:1237
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "logging into %s as %s, pw %s\n"
|
msgid "logging into %s as %s, pw %s\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in New Issue