[Mageia-sysadm] [295] - properly set each rpm macros at import

root at mageia.org root at mageia.org
Fri Jan 14 13:25:43 CET 2011


Revision: 295
Author:   nanardon
Date:     2011-01-14 13:25:43 +0100 (Fri, 14 Jan 2011)
Log Message:
-----------
- properly set each rpm macros at import

Modified Paths:
--------------
    build_system/mgarepo/trunk/MgaRepo/simplerpm.py

Modified: build_system/mgarepo/trunk/MgaRepo/simplerpm.py
===================================================================
--- build_system/mgarepo/trunk/MgaRepo/simplerpm.py	2011-01-14 07:43:10 UTC (rev 294)
+++ build_system/mgarepo/trunk/MgaRepo/simplerpm.py	2011-01-14 12:25:43 UTC (rev 295)
@@ -14,6 +14,8 @@
             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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110114/4b5a7ae3/attachment.html>


More information about the Mageia-sysadm mailing list