aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/simplerpm.py4
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