Source

vpackager / src / vpackager / buildutils.py

Diff from to

File src/vpackager/buildutils.py

 
         # call the sbbuilder binary
         proc = bottools.Execute(
-            'sbbuilder --package=%s --version=%s --type=%s --build=%s --user=%s --configure_options=%s' %(
+            'sbbuilder --package=%s --version=%s --type=%s --build=%s --user=%s --configure_options="%s"' %(
                 self.app, self.ver, self.builder, buildno, packager, config))
         proc.run()
         if proc.popen.returncode > 0:
 
         return None
 
-    def buildSlackBuild(self):
+    def buildSlackBuild(self, config=""):
         """ Execute the build script generated by sbbuilder"""
+        os.environ['CONFIG_OPTIONS'] = config
         return bottools.Execute('sh %s.SlackBuild'% self.app)
 
     def Extract(self, srcdir=None):
             raise MissingSourcesHomeError
         cm = 'sbbuilder --package=%s --version=%s --type=%s'% (self.app,
                 self.ver, self.builder) + \
-                '--build=%s --user=%s --link=%s --configure_options=%s'% (buildno,
+                '--build=%s --user=%s --link=%s --configure_options="%s"'% (buildno,
                         packager, self.link, config)
         proc = bottools.Execute(cm)
         proc.run()
         return bottools.Execute('installpkg %s'% pkgpath)
 
 
-    def buildSlackBuild(self):
+    def buildSlackBuild(self, config=""):
         """ Execute the build script generated by the class"""
         # Make sure we are at the correct location
         os.chdir(self.srclocation)
+        os.environ['CONFIG_OPTIONS'] = config
         return bottools.Execute('sh %s.SlackBuild'% self.app)
+        #return bottools.Execute('sh %s.SlackBuild'% self.app)