summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-12-21 17:11:43 +0000
committerjbj <devnull@localhost>1999-12-21 17:11:43 +0000
commit3b0700f77b8ad72f4cd7f1ffbfe4b1fc37740603 (patch)
tree6834e310f75efe88fc9b1fc05ed80cfb7efd74bb /build
parent6e704014b740394aba2452f8fb78726925a78dcf (diff)
downloadlibrpm-tizen-3b0700f77b8ad72f4cd7f1ffbfe4b1fc37740603.tar.gz
librpm-tizen-3b0700f77b8ad72f4cd7f1ffbfe4b1fc37740603.tar.bz2
librpm-tizen-3b0700f77b8ad72f4cd7f1ffbfe4b1fc37740603.zip
lib/rpmio.c: Start weeding the debug messages.
lib/rpmio.c: Functional HTTP PUT. CVS patchset: 3493 CVS date: 1999/12/21 17:11:43
Diffstat (limited to 'build')
-rw-r--r--build/files.c41
1 files changed, 16 insertions, 25 deletions
diff --git a/build/files.c b/build/files.c
index b31b54b7c..4278521aa 100644
--- a/build/files.c
+++ b/build/files.c
@@ -1387,7 +1387,7 @@ int processSourceFiles(Spec spec)
StringBuf sourceFiles;
int x, isSpec = 1;
struct FileList fl;
- char *s, **files, **fp, *fn;
+ char *s, **files, **fp;
Package pkg;
sourceFiles = newStringBuf();
@@ -1452,47 +1452,38 @@ int processSourceFiles(Spec spec)
/* The first source file is the spec file */
x = 0;
for (fp = files; *fp != NULL; fp++) {
+ const char * diskURL, *diskPath;
FileListRec *flp;
- s = *fp;
- SKIPSPACE(s);
- if (! *s)
+
+ diskURL = *fp;
+ SKIPSPACE(diskURL);
+ if (! *diskURL)
continue;
flp = &fl.fileList[x];
flp->flags = isSpec ? RPMFILE_SPECFILE : 0;
/* files with leading ! are no source files */
- if (*s == '!') {
+ if (*diskURL == '!') {
flp->flags |= RPMFILE_GHOST;
- s++;
+ diskURL++;
}
- switch (urlIsURL(s)) {
- case URL_IS_PATH: /* file://... */
- s += sizeof("file://") - 1;
- s = strchr(s, '/');
- /*@fallthrough@*/
- case URL_IS_UNKNOWN: /* plain file path */
- break;
- case URL_IS_DASH: /* stdin */
- case URL_IS_FTP: /* ftp://... */
- case URL_IS_HTTP: /* http://... */
- continue; /* XXX WRONG WRONG WRONG */
- }
+ urlPath(diskURL, &diskPath);
- flp->diskURL = xstrdup(s);
- fn = strrchr(s, '/');
- if (fn)
- fn++;
+ flp->diskURL = xstrdup(diskURL);
+ diskPath = strrchr(diskPath, '/');
+ if (diskPath)
+ diskPath++;
else
- fn = s;
+ diskPath = diskURL;
- flp->fileURL = xstrdup(fn);
+ flp->fileURL = xstrdup(diskPath);
if (_debug)
fprintf(stderr, "*** PSF fileName %s diskName %s\n", flp->fileURL, flp->diskURL);
flp->verifyFlags = RPMVERIFY_ALL;
- stat(s, &flp->fl_st);
+ Stat(diskURL, &flp->fl_st);
flp->uname = getUname(flp->fl_uid);
flp->gname = getGname(flp->fl_gid);