aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs10
1 files changed, 0 insertions, 10 deletions
diff --git a/URPM.xs b/URPM.xs
index 4687f86..6028d61 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3351,7 +3351,6 @@ void
Urpm_spec2srcheader(specfile)
char *specfile
PREINIT:
- rpmts ts = rpmtsCreate();
URPM__Package pkg;
Spec spec = NULL;
Header header = NULL;
@@ -3364,14 +3363,6 @@ Urpm_spec2srcheader(specfile)
if (spec) {
header = rpmSpecSourceHeader(spec);
SV *sv_pkg;
-#ifndef RPM490
- // FIXME: has disappeared in rpm-4.9.0rpmSpecParse
- // (See http://www.rpm.org/wiki/Releases/4.9.0)
- spec = rpmtsSetSpec(ts, NULL);
- header = spec->sourceHeader;
- if (! header)
- initSourceHeader(spec);
-#endif
pkg = (URPM__Package)calloc(1, sizeof(struct s_Package));
headerPutString(header, RPMTAG_SOURCERPM, "");
@@ -3396,7 +3387,6 @@ Urpm_spec2srcheader(specfile)
if (errno == EBADF)
errno = 0;
}
- ts = rpmtsFree(ts);
void
expand(name)