Source

vpackager / src / vpackager / viewcontrollers.py

Diff from to

src/vpackager/viewcontrollers.py

         if info['patches'] not in (
             '', None, 'None'):
             dia.set_patches(info['patches'].split(','))
+        # 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 = dia.run()
         dia.hide()
         if response == gtk.RESPONSE_OK: