69 dlg.start(args) |
69 dlg.start(args) |
70 dlg.exec_() |
70 dlg.exec_() |
71 ok, resultDict = dlg.getResult() |
71 ok, resultDict = dlg.getResult() |
72 |
72 |
73 if ok: |
73 if ok: |
74 if "actions" in resultDict and \ |
74 if ("actions" in resultDict and |
75 "PREFIX" in resultDict["actions"]: |
75 "PREFIX" in resultDict["actions"]): |
76 prefix = resultDict["actions"]["PREFIX"] |
76 prefix = resultDict["actions"]["PREFIX"] |
77 elif "prefix" in resultDict: |
77 elif "prefix" in resultDict: |
78 prefix = resultDict["prefix"] |
78 prefix = resultDict["prefix"] |
79 elif "dst_prefix" in resultDict: |
79 elif "dst_prefix" in resultDict: |
80 prefix = resultDict["dst_prefix"] |
80 prefix = resultDict["dst_prefix"] |
500 |
500 |
501 if not name and not prefix: |
501 if not name and not prefix: |
502 raise RuntimeError("One of 'name' or 'prefix' must be given.") |
502 raise RuntimeError("One of 'name' or 'prefix' must be given.") |
503 |
503 |
504 if packages: |
504 if packages: |
505 from UI.DeleteFilesConfirmationDialog import \ |
505 from UI.DeleteFilesConfirmationDialog import ( |
506 DeleteFilesConfirmationDialog |
506 DeleteFilesConfirmationDialog) |
507 dlg = DeleteFilesConfirmationDialog( |
507 dlg = DeleteFilesConfirmationDialog( |
508 self.parent(), |
508 self.parent(), |
509 self.tr("Uninstall Packages"), |
509 self.tr("Uninstall Packages"), |
510 self.tr( |
510 self.tr( |
511 "Do you really want to uninstall these packages and" |
511 "Do you really want to uninstall these packages and" |