aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/simplerpm.py
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo/simplerpm.py')
-rw-r--r--MgaRepo/simplerpm.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/MgaRepo/simplerpm.py b/MgaRepo/simplerpm.py
index 94b0fb0..19fc535 100644
--- a/MgaRepo/simplerpm.py
+++ b/MgaRepo/simplerpm.py
@@ -14,9 +14,11 @@ class SRPM:
self.epoch = None
def unpack(self, topdir):
- args ["rpm", "-i", "--nodeps", "--define", "_sourcedir", topdir+"/SOURCES",
- "--define", "_specdir", topdir + "/SPECS", "--define", "_patchdir",
- topdir+"/SOURCES", self.filename]
+ args = ["rpm", "-i", "--nodeps",
+ "--define", "'_sourcedir "+topdir+"/SOURCES'",
+ "--define", "'_specdir " + topdir + "/SPECS'",
+ "--define", "'_patchdir " + topdir+"/SOURCES'",
+ self.filename]
execcmd(args)
# vim:et:ts=4:sw=4