Moises Henriquez committed a9f5035

Fixed job rebuilding from history to set the source type to the last value used, changed the install package command to upgrade an existing package rather than just install it

Comments (0)

Files changed (2)


         if not fullpath:
             raise PackageNotFoundError
-        return bottools.Execute('installpkg %s'% fullpath)
+        return bottools.Execute('upgradepkg --install-new %s'% fullpath)
     def makeSlackBuild(self, buildno='1', packager=_packager,
         if not pkgpath:
             raise PackageNotFoundError
-        return bottools.Execute('installpkg %s'% pkgpath)
+        return bottools.Execute('upgradepkg --install-new %s'% pkgpath)
     def buildSlackBuild(self, config=""):


         if info['patches'] not in (
             '', None, 'None'):
+        # figure out the source type and set the correct value on the
+        # drop box
+        _type = info['type']
+        if _type == 'autotools':
+            _typeid = 1
+        elif _type == 'python':
+            _typeid = 2
+        elif _type == 'cmake':
+            _typeid = 3
+        elif _type == 'perl':
+            _typeid = 4
+        elif _type == 'waf':
+            _typeid = 5
+        else:
+            _typeid = 0
+        # Set the dropbox value to the determined source type
+        dia.srcTypeSel.set_active(_typeid)
+        # Set the install? checkbox value
         response =
         if response == gtk.RESPONSE_OK:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.