diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-10-10 12:12:51 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-10-10 12:12:51 +0200 |
commit | ce750b78b8a9e6d9ce089eaae78bc65f2d49860a (patch) | |
tree | 2b2abf93ce321b975ca6845d3f62bb502ebfa4a3 /MgaRepo | |
parent | 24b136aab7fd957dfb2f363f8f478b9f80277cf0 (diff) | |
download | mgarepo-ce750b78b8a9e6d9ce089eaae78bc65f2d49860a.tar mgarepo-ce750b78b8a9e6d9ce089eaae78bc65f2d49860a.tar.gz mgarepo-ce750b78b8a9e6d9ce089eaae78bc65f2d49860a.tar.bz2 mgarepo-ce750b78b8a9e6d9ce089eaae78bc65f2d49860a.tar.xz mgarepo-ce750b78b8a9e6d9ce089eaae78bc65f2d49860a.zip |
Corrections for putsrpm command
- formatting the defines parameters in rpm command
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/rpmutil.py | 2 | ||||
-rw-r--r-- | MgaRepo/simplerpm.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 0fe6f81..78e086d 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -214,7 +214,7 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None, else: pkgurl = layout.package_url(srpm.name, distro=branch, mirrored=False) - svn = detectVCS(pkgdirurl) + svn = detectVCS(pkgurl) print("Importing package to %s" % pkgurl) try: if srpm.epoch: 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 |