aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-10 10:55:31 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-10 10:55:31 +0000
commitf93b9226a926ce479b70074f55246c3fb7cea628 (patch)
treea549ba7f560d2f7b6380ae0431ac97f1c781a5f3
parentebc3ccf072d16ca45730ce60c781952f77ac1ec4 (diff)
downloadperl-URPM-f93b9226a926ce479b70074f55246c3fb7cea628.tar
perl-URPM-f93b9226a926ce479b70074f55246c3fb7cea628.tar.gz
perl-URPM-f93b9226a926ce479b70074f55246c3fb7cea628.tar.bz2
perl-URPM-f93b9226a926ce479b70074f55246c3fb7cea628.tar.xz
perl-URPM-f93b9226a926ce479b70074f55246c3fb7cea628.zip
(spec2srcheader) fix arch of spec header
introduction introduced in commit r5031 on 012-06-25 ("spec2srcheader) simplify using headerPutString()") fixed by simplifying: our changes are no more needed...
-rw-r--r--NEWS1
-rw-r--r--URPM.xs3
2 files changed, 1 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index b9b6693..e393e75 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- drop compatibility with urpmi <= 4.5-13mdk (2004-07-09)
+- fix arch of spec headers (regression introduced in 4.8)
Version 4.10 - 29 June 2012
diff --git a/URPM.xs b/URPM.xs
index a5ddb48..fd2e61f 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3279,9 +3279,6 @@ Urpm_spec2srcheader(specfile)
header = rpmSpecSourceHeader(spec);
SV *sv_pkg;
pkg = (URPM__Package)calloc(1, sizeof(struct s_Package));
- headerPutString(header, RPMTAG_SOURCERPM, "");
- /* parseSpec() sets RPMTAG_ARCH to %{_target_cpu} whereas we really a header similar to .src.rpm header */
- headerPutString(header, RPMTAG_ARCH, "src");
pkg->h = headerLink(header);
sv_pkg = sv_newmortal();
sv_setref_pv(sv_pkg, "URPM::Package", (void*)pkg);