aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-05-23 21:32:48 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-05-23 21:32:48 +0000
commitc930d1efda0bfe5b2e32add88d3c3616a7875191 (patch)
tree1f846a12de1de88b7cf706b85ef94763374a06b4
parent2994a341a65b43ea66ab58d72c1a7146ea02d930 (diff)
downloadperl-URPM-c930d1efda0bfe5b2e32add88d3c3616a7875191.tar
perl-URPM-c930d1efda0bfe5b2e32add88d3c3616a7875191.tar.gz
perl-URPM-c930d1efda0bfe5b2e32add88d3c3616a7875191.tar.bz2
perl-URPM-c930d1efda0bfe5b2e32add88d3c3616a7875191.tar.xz
perl-URPM-c930d1efda0bfe5b2e32add88d3c3616a7875191.zip
- fix urpmi .spec: aka ensure the rpm config is read with all macros before parsing a spec
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 9072b0f..ee99790 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3707,6 +3707,8 @@ Urpm_spec2srcheader(specfile)
URPM__Package pkg;
Spec spec = NULL;
PPCODE:
+/* ensure the config is in memory with all macro */
+ read_config_files(0);
/* Do not verify architecture */
#define SPEC_ANYARCH 1
/* Do not verify whether sources exist */