diff options
author | Olivier Thauvin <nanardon@mageia.org> | 2011-01-14 12:25:43 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mageia.org> | 2011-01-14 12:25:43 +0000 |
commit | 90332f3ae4e0c8695d400e504e44f01341690d5e (patch) | |
tree | 188243e744bea0556ed7844aea7e1f2173f16449 /MgaRepo | |
parent | daf9eb65899491717f1bf7660bf708c003c44cae (diff) | |
download | mgarepo-90332f3ae4e0c8695d400e504e44f01341690d5e.tar mgarepo-90332f3ae4e0c8695d400e504e44f01341690d5e.tar.gz mgarepo-90332f3ae4e0c8695d400e504e44f01341690d5e.tar.bz2 mgarepo-90332f3ae4e0c8695d400e504e44f01341690d5e.tar.xz mgarepo-90332f3ae4e0c8695d400e504e44f01341690d5e.zip |
- properly set each rpm macros at import
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/simplerpm.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MgaRepo/simplerpm.py b/MgaRepo/simplerpm.py index 806079c..1080c93 100644 --- a/MgaRepo/simplerpm.py +++ b/MgaRepo/simplerpm.py @@ -14,6 +14,8 @@ class SRPM: self.epoch = None def unpack(self, topdir): - execcmd("rpm -i --define '_topdir %s' %s" % (topdir, self.filename)) + execcmd("rpm -i --define '_sourcedir %s/SOURCES' " + + "--define '_specdir %s/SPECS' --define '_patchdir %s/SPECS' %s" + % (topdir, topdir, topdir, self.filename)) # vim:et:ts=4:sw=4 |