aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:23:44 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:23:44 +0000
commit860d1b69057d2968de6d16703223a3194619137c (patch)
treef11802de7a2c0c6afab3d7bd2fcaf55fde5333aa /URPM.xs
parenta0aaa6a64037ac6293275d5b7016165b35ab08f9 (diff)
downloadperl-URPM-860d1b69057d2968de6d16703223a3194619137c.tar
perl-URPM-860d1b69057d2968de6d16703223a3194619137c.tar.gz
perl-URPM-860d1b69057d2968de6d16703223a3194619137c.tar.bz2
perl-URPM-860d1b69057d2968de6d16703223a3194619137c.tar.xz
perl-URPM-860d1b69057d2968de6d16703223a3194619137c.zip
(update_header) do not add FILENAME_TAG to hdlist anymore (unused since mdv2008)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs9
1 files changed, 0 insertions, 9 deletions
diff --git a/URPM.xs b/URPM.xs
index bb50d25..f44bfbb 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -96,8 +96,6 @@ typedef struct s_Package* URPM__Package;
#define FLAG_RATE_INVALID 0
-#define FILENAME_TAG 1000000
-
#define FILTER_MODE_ALL_FILES 0
#define FILTER_MODE_CONF_FILES 2
@@ -1185,15 +1183,8 @@ update_header(char *filename, URPM__Package pkg, __attribute__((unused)) int kee
ts = rpmtsCreate();
rpmtsSetVSFlags(ts, _RPMVSF_NOSIGNATURES | vsflags);
if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0 && header) {
- char *basename;
-
- basename = strrchr(filename, '/');
Fclose(fd);
- /* this is only kept for compatibility with older distros
- (where ->filename on "unpacked" URPM::Package rely on FILENAME_TAG) */
- headerPutString(header, FILENAME_TAG, basename != NULL ? basename + 1 : filename);
-
if (pkg->h && !(pkg->flag & FLAG_NO_HEADER_FREE)) pkg->h = headerFree(pkg->h);
pkg->h = header;
pkg->flag &= ~FLAG_NO_HEADER_FREE;