diff options
author | Neal Gompa <ngompa13@gmail.com> | 2016-10-10 08:25:38 -0400 |
---|---|---|
committer | Neal Gompa <ngompa13@gmail.com> | 2016-10-10 08:25:38 -0400 |
commit | 8465bdb64a577d729520432455b7c2a00b4f8242 (patch) | |
tree | 579da4698ed04579cf2bfc3a81141784611d8e45 | |
parent | ce750b78b8a9e6d9ce089eaae78bc65f2d49860a (diff) | |
download | mgarepo-8465bdb64a577d729520432455b7c2a00b4f8242.tar mgarepo-8465bdb64a577d729520432455b7c2a00b4f8242.tar.gz mgarepo-8465bdb64a577d729520432455b7c2a00b4f8242.tar.bz2 mgarepo-8465bdb64a577d729520432455b7c2a00b4f8242.tar.xz mgarepo-8465bdb64a577d729520432455b7c2a00b4f8242.zip |
Fix rpm command for unpacking source RPMs
-rw-r--r-- | MgaRepo/simplerpm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MgaRepo/simplerpm.py b/MgaRepo/simplerpm.py index 19fc535..f248317 100644 --- a/MgaRepo/simplerpm.py +++ b/MgaRepo/simplerpm.py @@ -15,9 +15,9 @@ class SRPM: def unpack(self, topdir): args = ["rpm", "-i", "--nodeps", - "--define", "'_sourcedir "+topdir+"/SOURCES'", - "--define", "'_specdir " + topdir + "/SPECS'", - "--define", "'_patchdir " + topdir+"/SOURCES'", + "--define", "_sourcedir {0}/SOURCES".format(topdir), + "--define", "_specdir {0}/SPECS".format(topdir), + "--define", "_patchdir {0}/SOURCES".format(topdir), self.filename] execcmd(args) |