aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-18 17:20:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-18 17:20:58 +0000
commitb32aad743a296a430247eff2638ab747fd12a586 (patch)
treeac6ab12dfe3065f7243159368c8f28d25a07f8c8
parent7bf90f754dc9cf3e7199a8c442626fe3527b82ad (diff)
downloadperl-URPM-b32aad743a296a430247eff2638ab747fd12a586.tar
perl-URPM-b32aad743a296a430247eff2638ab747fd12a586.tar.gz
perl-URPM-b32aad743a296a430247eff2638ab747fd12a586.tar.bz2
perl-URPM-b32aad743a296a430247eff2638ab747fd12a586.tar.xz
perl-URPM-b32aad743a296a430247eff2638ab747fd12a586.zip
(spec2srcheader) simplify now that we don't support rpm-4.8 anymore
-rw-r--r--NEWS1
-rw-r--r--URPM.xs10
2 files changed, 1 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index ba935de..6622940 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- drop 'direction' parameter in obsoletes_overlap() & provides_overlap()
- fix default 'direction' for provides_overlap()
(regression in URPM-4.2)
+- internal cleanups
Version 4.5 - 17 June 2012
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)