diff --git a/.gitignore b/.gitignore index bec93b84196db1bfa352f5aba02c4bdc2f1be2ed..fd905952a546fb7ed47f2aa83b54a9568aaa0458 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __pycache__ .goutputstream* test* +build diff --git a/data/applications/pamac-install.desktop b/data/applications/pamac-install.desktop new file mode 100644 index 0000000000000000000000000000000000000000..eeef2c6dafa0ede6fd967ade70454f772054a0c1 --- /dev/null +++ b/data/applications/pamac-install.desktop @@ -0,0 +1,131 @@ +[Desktop Entry] +Name=Software Install +Name[af]=Sagteware installeer +Name[ar]=تثبيت البرامج +Name[as]=চফà§à¦Ÿà§±à§‡à§° ইনসà§à¦Ÿà¦² +Name[ast]=Instalador de software +Name[be]=УÑталÑванне Ð°Ð¿Ñ€Ð°Ð³Ñ€Ð°Ð¼Ð°Ð²Ð°Ð½Ð½Ñ +Name[bg]=ИнÑталиране на Ñофтуер +Name[bn_IN]=সফà§à¦Ÿà¦“য়à§à¦¯à¦¾à¦° ইনসà§à¦Ÿà¦²à§‡à¦¶à¦¨ +Name[ca]=Instal·lació de programari +Name[ca@valencia]=Instal·lació de programari +Name[cs]=Instalace softwaru +Name[da]=Softwareinstallation +Name[de]=Software-Installation +Name[el]=Εγκατάσταση Î»Î¿Î³Î¹ÏƒÎ¼Î¹ÎºÎ¿Ï +Name[en_GB]=Software Install +Name[es]=Instalador de software +Name[et]=Tarkvara paigaldamine +Name[eu]=Paketeen instalatzailea +Name[fa]=نصب نرم‌اÙزار +Name[fi]=Ohjelmistojen asennus +Name[fr]=Installation de logiciels +Name[gl]=Instalador de software +Name[gu]=સોફà«àªŸàªµà«‡àª° સà«àª¥àª¾àªªàª¨ +Name[he]=×”×ª×§× ×ª ×ª×›× ×” +Name[hi]=सॉफà¥à¤Ÿà¤µà¥‡à¤¯à¤° संसà¥à¤¥à¤¾à¤ªà¤¿à¤¤ करें +Name[hu]=SzoftvertelepÃtÅ‘ +Name[id]=Pasang Perangkat Lunak +Name[it]=Installatore software +Name[ja]=ソフトウェアã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ« +Name[kn]=ತಂತà³à²°à²¾à²‚ಶ ಅನà³à²¸à³à²¥à²¾à²ªà²¨à³† +Name[ko]=소프트웨어 설치 +Name[lt]=PrograminÄ—s įrangos įdiegimas +Name[lv]=ProgrammatÅ«ras instalÄ“Å¡ana +Name[mk]=ИнÑталација на Ñофтвер +Name[ml]=സോഫàµà´±àµà´±àµâ€Œà´µàµ†à´¯à´°àµâ€ ഇനàµâ€à´¸àµà´±àµà´±àµ‹à´³àµâ€ +Name[mr]=सॉफà¥à¤Ÿà¤µà¥‡à¤…र पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापन +Name[nb]=Programvareinstallasjon +Name[nl]=Software-installatie +Name[pa]=ਸਾਫਟਵੇਅਰ ਇੰਸਟਾਲ ਕਰੋ +Name[pl]=Instalacja oprogramowania +Name[pt]=Instalar Software +Name[pt_BR]=Instalação de programas +Name[ru]=УÑтановка программ +Name[sk]=InÅ¡talácia softvéru +Name[sl]=NameÅ¡Äanje programske opreme +Name[sr]=ИнÑталација Ñофтвера +Name[sr@latin]=Instalacija softvera +Name[sv]=Programinstallation +Name[ta]=மெனà¯à®ªà¯Šà®°à¯à®³à¯ நிறà¯à®µà®²à¯ +Name[te]=సాఫà±à°Ÿà±â€à°µà±‡à°°à± à°¸à±à°¥à°¾à°ªà°¨ +Name[th]=ติดตั้งซà¸à¸Ÿà¸•à¹Œà¹à¸§à¸£à¹Œ +Name[tr]=Yazılım Kur +Name[ug]=يۇمشاق دÛتال ئورنات +Name[uk]=УÑÑ‚Ð°Ð½Ð¾Ð²Ð»ÐµÐ½Ð½Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼ +Name[vi]=Cà i phần má»m +Name[zh_CN]=è½¯ä»¶å®‰è£…ç¨‹åº +Name[zh_HK]=è»Ÿä»¶å®‰è£ +Name[zh_TW]=è»Ÿé«”å®‰è£ +Comment=Install selected software on the system +Comment[af]=Installeer gekose sagteware op die stelsel +Comment[ar]=ثبت البرمجيات المختارة على النظام +Comment[as]=চিসà§à¦Ÿà§‡à¦®à¦¤ নিৰà§à¦¬à¦¾à¦šà¦¿à¦¤ চফà§à¦Ÿà§±à§‡à§° ইনসà§à¦Ÿà¦² কৰক +Comment[ast]=Instalar el software escoyÃu nel sistema +Comment[be]=УÑталÑваць вылучанае апраграмаванне Ñž ÑÑ–ÑÑ‚Ñму +Comment[bg]=ИнÑталиране на Ð¸Ð·Ð±Ñ€Ð°Ð½Ð¸Ñ Ñофтуер на ÑиÑтемата +Comment[bn]=সিসà§à¦Ÿà§‡à¦®à§‡à¦° মধà§à¦¯à§‡ নিরà§à¦¬à¦¾à¦šà¦¿à¦¤ সফà§à¦Ÿà¦“য়à§à¦¯à¦¾à¦° ইনসà§à¦Ÿà¦² +Comment[bn_IN]=সিসà§à¦Ÿà§‡à¦®à§‡à¦° মধà§à¦¯à§‡ নিরà§à¦¬à¦¾à¦šà¦¿à¦¤ সফà§à¦Ÿà¦“য়à§à¦¯à¦¾à¦° ইনসà§à¦Ÿà¦² করà§à¦¨ +Comment[ca]=Instal·la el programari seleccionat en el sistema +Comment[ca@valencia]=Instal·la el programari seleccionat en el sistema +Comment[cs]=Instalovat vybraný software do tohoto systému +Comment[da]=Installér valgt software pÃ¥ systemet +Comment[de]=Ausgewählte Software auf dem System installieren +Comment[el]=Εγκατάσταση του επιλεγμÎνου Î»Î¿Î³Î¹ÏƒÎ¼Î¹ÎºÎ¿Ï ÏƒÏ„Î¿ σÏστημα +Comment[en@shaw]=ð‘¦ð‘¯ð‘•ð‘‘ð‘·ð‘¤ ð‘•ð‘©ð‘¤ð‘§ð‘’ð‘‘ð‘©ð‘› ð‘•ð‘ªð‘“ð‘‘ð‘¢ð‘º ð‘ªð‘¯ ð‘ž ð‘•ð‘¦ð‘•ð‘‘ð‘©ð‘¥ +Comment[en_GB]=Install selected software on the system +Comment[eo]=Instali elektitan programaron sur the sistemo +Comment[es]=Instalar el software seleccionado en el sistema +Comment[et]=Valitud tarkvara paigaldamine arvutisse +Comment[eu]=Instalatu hautatutako softwarea sisteman +Comment[fa]=نصب نرم‌اÙزار انتخاب شده بر روی سیستم +Comment[fi]=Asenna valitut ohjelmistot järjestelmään +Comment[fr]=Installer le logiciel sélectionné sur le système +Comment[gl]=Instalar o programa seleccionado no sistema +Comment[gu]=સિસà«àªŸàª® પર પસંદ થયેલ સોફà«àªŸàªµà«‡àª°àª¨à«‡ સà«àª¥àª¾àªªàª¿àª¤ કરો +Comment[he]=×”×ª×§× ×ª ×”×ª×•×›× ×•×ª ×”× ×‘×—×¨×•×ª על המערכת +Comment[hi]=सिसà¥à¤Ÿà¤® पर चयनित सॉफà¥à¤Ÿà¤µà¥‡à¤¯à¤° संसà¥à¤¥à¤¾à¤ªà¤¿à¤¤ करें +Comment[hu]=A kijelölt szoftverek telepÃtése a rendszerre +Comment[id]=Pasang perangkat lunak yang dipilih pada sistem +Comment[it]=Installa il software selezionato sul sistema +Comment[ja]=é¸æŠžã•ã‚ŒãŸã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã‚’システムã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—ã¾ã™ +Comment[kn]=ಆರಿಸಲಾದ ತಂತà³à²°à²¾à²‚ಶವನà³à²¨à³ ಗಣಕದಲà³à²²à²¿ ಅನà³à²¸à³à²¥à²¾à²ªà²¿à²¸à³ +Comment[ko]=ì„ íƒí•œ 소프트웨어를 ì‹œìŠ¤í…œì— ì„¤ì¹˜í•©ë‹ˆë‹¤ +Comment[lt]=Ä®diegti pasirinktÄ… programinÄ™ įrangÄ… sistemoje +Comment[lv]=InstalÄ“t izvÄ“lÄ“to programmatÅ«ru sistÄ“mÄ +Comment[mk]=ИнÑталирај го избраниот Ñофтвер на ÑиÑтемот +Comment[ml]=തെരഞàµà´žàµ†à´Ÿàµà´¤àµà´¤ സോഫàµà´±àµà´±àµâ€Œà´µàµ†à´¯à´±àµà´•à´³àµâ€ സിസàµà´±àµà´±à´®à´¿à´²àµâ€ ഇനàµâ€à´¸àµà´±àµà´±àµ‹à´³àµâ€ ചെയàµà´¯àµà´• +Comment[mr]=नीवडलेले सॉफà¥à¤Ÿà¤µà¥‡à¤…र पà¥à¤°à¤£à¤¾à¤²à¥€à¤µà¤° पà¥à¤°à¤¤à¤¿à¤·à¥à¤ ापीत करा +Comment[nb]=Installer valgt programvare pÃ¥ systemet +Comment[nl]=Geselecteerde software op het systeem installeren +Comment[nn]=Installer vald programvare pÃ¥ systemet +Comment[or]=ତନàତàà¬°à¬°à‡ à¬¬à¬šàଛିତ ସଫàଟà±à‡à¬° ସàଥାପନ କରନàତà +Comment[pa]=ਚà©à¨£à©‡ ਸਾਫਟਵੇਅਰ ਸਿਸਟਮ ਉੱਤੇ ਇੰਸਟਾਲ ਕਰੋ +Comment[pl]=Instalacja wybranego oprogramowania w systemie +Comment[pt]=Instalar software seleccionado no sistema +Comment[pt_BR]=Instale o programa selecionado no sistema +Comment[ro]=Instalează pachetele selectate pe sistem +Comment[ru]=УÑтановить в ÑиÑтему выбранные программы +Comment[sk]=NainÅ¡talovaÅ¥ na systéme zvolený softvér +Comment[sl]=Namestitev izbrane programske opreme v sistem +Comment[sr]=ИнÑталирајте изабране програме на ÑиÑтем +Comment[sr@latin]=Instalirajte izabrane programe na sistem +Comment[sv]=Installera markerad programvara pÃ¥ systemet +Comment[ta]=தேரà¯à®¨à¯à®¤à¯†à®Ÿà¯à®•à¯à®•à®ªà¯à®ªà®Ÿà¯à®Ÿ மெனà¯à®ªà¯Šà®°à¯à®³à¯ˆ கணினியில௠நிறà¯à®µà®µà¯à®®à¯ +Comment[te]=à°Žà°‚à°šà±à°•à±à°¨à±à°¨ సాఫà±à°Ÿà±â€â€Œà°µà±‡à°°à±â€Œà°¨à± à°µà±à°¯à°µà°¸à±à°¥ నందౠసà±à°¥à°¾à°ªà°¿à°‚à°šà± +Comment[th]=ติดตั้งซà¸à¸Ÿà¸•à¹Œà¹à¸§à¸£à¹Œà¸—ี่เลืà¸à¸à¹„ว้ลงในระบบ +Comment[tr]=Seçili yazılımı sisteme kur +Comment[ug]=تاللانغان يۇمشاق دÛتالنى سىستÛمىغا ئورنات +Comment[uk]=Ð’Ñтановити у ÑиÑтему вибрані програми +Comment[vi]=Cà i đặt phần má»m đã chá»n và o hệ thống +Comment[zh_CN]=在系统ä¸å®‰è£…选定的软件 +Comment[zh_HK]=安è£é¸å–çš„è»Ÿä»¶åˆ°ç³»çµ±ä¸ +Comment[zh_TW]=安è£é¸å–çš„è»Ÿé«”åˆ°ç³»çµ±ä¸ +Categories=System; +Exec=pamac-install %F +Terminal=false +Type=Application +Icon=system-software-install +StartupNotify=true +NoDisplay=true +MimeType=application/x-xz-compressed-tar; diff --git a/data/applications/pamac-manager.desktop b/data/applications/pamac-manager.desktop index b64bb758a553623b6e87caf6923ad1e69d2e12a1..b510029ffd3fae81a32ebc7bbc5d8618f8ffab71 100644 --- a/data/applications/pamac-manager.desktop +++ b/data/applications/pamac-manager.desktop @@ -137,4 +137,3 @@ Type=Application Categories=GNOME;GTK;System; #NotShowIn=KDE; StartupNotify=true - diff --git a/data/applications/pamac-tray.desktop b/data/applications/pamac-tray.desktop index e94c572a65689798d710d11daf058f528074df81..c530f74db843f5914ce916a610c9706f73fbd7a8 100644 --- a/data/applications/pamac-tray.desktop +++ b/data/applications/pamac-tray.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Name=Pamac Tray Icon +Name=Update Notifier Icon=update-notifier Exec=pamac-tray Terminal=false diff --git a/data/applications/pamac-updater.desktop b/data/applications/pamac-updater.desktop index 2d7b82c3c291670a179104fec42cc5bd4050ed8c..a24cb54a1558860dd564a50a26e934382740ce79 100644 --- a/data/applications/pamac-updater.desktop +++ b/data/applications/pamac-updater.desktop @@ -133,4 +133,3 @@ Type=Application Categories=GNOME;GTK;System; #NotShowIn=KDE StartupNotify=true - diff --git a/pamac-daemon.py b/pamac-daemon.py index 40f54b1ce8fc653f02ebffb0804a133390ce0b27..666bf2eca759f4615f894a496506bf83fbb8267b 100755 --- a/pamac-daemon.py +++ b/pamac-daemon.py @@ -97,6 +97,22 @@ class PamacDBusService(dbus.service.Object): formatted_event = 'Upgraded {pkgname} ({oldversion} -> {newversion})'.format(pkgname = tupel[1].name, oldversion = tupel[1].version, newversion = tupel[0].version) common.write_log_file(formatted_event) print(formatted_event) + elif ID is 15: + self.action = _('Downgrading')+'...' + self.icon = '/usr/share/pamac/icons/24x24/status/rollback.png' + print('Downgrading a package') + elif ID is 16: + #formatted_event = 'Downgraded {pkgname} ({oldversion} -> {newversion})'.format(pkgname = tupel[1].name, oldversion = tupel[1].version, newversion = tupel[0].version) + #common.write_log_file(formatted_event) + #print(formatted_event) + elif ID is 17: + self.action = _('Reinstalling')+'...' + self.icon = '/usr/share/pamac/icons/24x24/status/package-add.png' + print('Reinstalling a package') + #elif ID is 18: + #formatted_event = 'Reinstalled {pkgname} ({pkgversion})'.format(pkgname = tupel[0].name, pkgversion = tupel[0].version) + #common.write_log_file(formatted_event) + #print(formatted_event) elif ID is 19: self.action = _('Checking integrity')+'...' self.icon = '/usr/share/pamac/icons/24x24/status/package-search.png' @@ -326,6 +342,19 @@ class PamacDBusService(dbus.service.Object): finally: return self.error + @dbus.service.method('org.manjaro.pamac', 's', 's') + def Load(self, tarball_path): + self.error = '' + try: + pkg = self.handle.load_pkg(tarball_path) + if pkg: + self.t.add_pkg(pkg) + print(pkg) + except pyalpm.error as e: + self.error += ' --> '+str(e)+'\n' + finally: + return self.error + @dbus.service.method('org.manjaro.pamac', '', 's') def Prepare(self): self.error = '' diff --git a/pamac-install.py b/pamac-install.py index bf381f9877e9ab25eaeb7548803f18b5d4817057..55dcf13cace8530c66e149ef86be8c610d2033a1 100755 --- a/pamac-install.py +++ b/pamac-install.py @@ -6,50 +6,86 @@ from sys import argv import dbus from pamac import common, transaction, main -def error(error): - transaction.StopDaemon() - common.rm_pid_file() - print('exiting') - loop.quit() +# i18n +import gettext +import locale +locale.bindtextdomain('pamac', '/usr/share/locale') +gettext.bindtextdomain('pamac', '/usr/share/locale') +gettext.textdomain('pamac') +_ = gettext.gettext -def reply(reply): +def exiting(msg): transaction.StopDaemon() common.rm_pid_file() print('exiting') loop.quit() -def install(pkgnames): - transaction.to_add = [] - transaction.to_remove = [] - pkg_to_install = [] - for pkgname in pkgnames: - if not pkgname in transaction.localpkgs.keys(): - transaction.to_add.append(pkgname) - pkg_to_install.append(transaction.syncpkgs[pkgname]) - main.check_conflicts('normal', pkg_to_install) - if transaction.to_add: - if transaction.init_transaction(noconflicts = True, needed =True): - for pkgname in transaction.to_add: - transaction.Add(pkgname) - for pkgname in transaction.to_remove: - transaction.Remove(pkgname) - _error = transaction.Prepare() - if _error: - main.handle_error(_error) - error(_error) - else: - main.finalize() - loop.run() +bus = dbus.SystemBus() +bus.add_signal_receiver(exiting, dbus_interface = "org.manjaro.pamac", signal_name = "EmitTransactionDone") +bus.add_signal_receiver(exiting, dbus_interface = "org.manjaro.pamac", signal_name = "EmitTransactionError") + +def new_on_TransCancelButton_clicked(self, *arg): + main.ProgressWindow.hide() + main.ConfDialog.hide() + transaction.Release() + exiting('') + +def new_on_TransValidButton_clicked(self, *arg): + main.ConfDialog.hide() + main.finalize() + +main.Handler.on_TransCancelButton_clicked = new_on_TransCancelButton_clicked +main.Handler.on_TransValidButton_clicked = new_on_TransValidButton_clicked +main.interface.connect_signals(main.Handler()) + +def get_pkgs(pkgs): + get_error = '' + for pkg in pkgs: + if '.pkg.tar.' in pkg: + transaction.to_load.add(pkg) + elif pkg in transaction.syncpkgs.keys(): + transaction.to_add.add(pkg) + else: + if get_error: + get_error += '\n' + get_error += _('{pkgname} is not a valid path or package name').format(pkgname = pkg) + if get_error: + main.handle_error(get_error) + exiting(get_error) + return False else: - main.WarningDialog.format_secondary_text('Nothing to do') - response = main.WarningDialog.run() - if response: - main.WarningDialog.hide() - reply('') + return True -bus = dbus.SystemBus() -bus.add_signal_receiver(reply, dbus_interface = "org.manjaro.pamac", signal_name = "EmitTransactionDone") -bus.add_signal_receiver(error, dbus_interface = "org.manjaro.pamac", signal_name = "EmitTransactionError") +def install(pkgs): + if get_pkgs(pkgs): + main.check_conflicts() + if transaction.to_add | transaction.to_load: + if transaction.init_transaction(noconflicts = True): + for pkgname in transaction.to_add: + transaction.Add(pkgname) + for pkg_path in transaction.to_load: + transaction.Load(pkg_path) + for pkgname in transaction.to_remove: + transaction.Remove(pkgname) + _error = transaction.Prepare() + if _error: + main.handle_error(_error) + exiting(_error) + else: + transaction.get_to_remove() + transaction.get_to_add() + do_syncfirst, updates = transaction.get_updates() + transaction.to_update = set([pkg.name for pkg in updates]) + transaction.to_add -= transaction.to_update + main.set_transaction_sum() + main.ConfDialog.show_all() + loop.run() + else: + main.WarningDialog.format_secondary_text(_('Nothing to do')) + response = main.WarningDialog.run() + if response: + main.WarningDialog.hide() + exiting('') loop = GObject.MainLoop() @@ -58,18 +94,17 @@ transaction.update_db() do_syncfirst, updates = transaction.get_updates() if common.pid_file_exists(): - main.ErrorDialog.format_secondary_text('Another instance of Pamac is running') + main.ErrorDialog.format_secondary_text(_('Pamac is already running')) response = main.ErrorDialog.run() if response: main.ErrorDialog.hide() - transaction.StopDaemon() -elif updates: - main.ErrorDialog.format_secondary_text('Some updates are available.\nPlease update your system first') - response = main.ErrorDialog.run() - if response: - main.ErrorDialog.hide() - transaction.StopDaemon() +#~ elif updates: + #~ main.ErrorDialog.format_secondary_text(_('Some updates are available.\nPlease update your system first')) + #~ response = main.ErrorDialog.run() + #~ if response: + #~ main.ErrorDialog.hide() + #~ transaction.StopDaemon() else: common.write_pid_file() - pkgname_to_install = argv[1:] - install(pkgname_to_install) + pkgs_to_install = argv[1:] + install(pkgs_to_install) diff --git a/pamac/main.py b/pamac/main.py index 4bd7d38e880730ed65aa4a2b61082d7ceec81a3a..160a524d92f0f9c00cdec86f85c228d14ff1a573 100644 --- a/pamac/main.py +++ b/pamac/main.py @@ -72,7 +72,7 @@ update_bottom_label = interface.get_object('update_bottom_label') def action_signal_handler(action): if action: progress_label.set_text(action) - if (_('Installing') in action) or (_('Removing') in action) or (_('Upgrading') in action) or (_('Configuring') in action): + if (_('Installing') in action) or (_('Reinstalling') in action) or (_('Downgrading') in action) or (_('Removing') in action) or (_('Upgrading') in action) or (_('Configuring') in action): ProgressCancelButton.set_visible(False) else: ProgressCancelButton.set_visible(True) @@ -343,7 +343,8 @@ def set_transaction_sum(): if transaction.to_add or transaction.to_update: dsize = 0 for name in transaction.to_add | transaction.to_update: - dsize += transaction.syncpkgs[name].download_size + if name in transaction.syncpkgs.keys(): + dsize += transaction.syncpkgs[name].download_size sum_bottom_label.set_markup(_('<b>Total download size: </b>')+common.format_size(dsize)) if transaction.to_remove: to_remove = sorted(transaction.to_remove) @@ -498,6 +499,11 @@ def check_conflicts(): while Gtk.events_pending(): Gtk.main_iteration() to_check = [transaction.syncpkgs[name] for name in transaction.to_add | transaction.to_update] + if transaction.to_load: + for path in transaction.to_load: + pkg = transaction.handle.load_pkg(path) + if pkg: + to_check.append(pkg) already_checked = set(pkg.name for pkg in to_check) depends = [to_check] warning = '' @@ -798,6 +804,8 @@ def check_conflicts(): ManagerWindow.get_root_window().set_cursor(Gdk.Cursor(Gdk.CursorType.ARROW)) print('check result:') print(' to add:', transaction.to_add if transaction.to_add else 'None') + if transaction.to_load: + print(' to load:', transaction.to_load) print(' will not be removed:', transaction.to_remove & wont_be_removed if transaction.to_remove & wont_be_removed else 'None') transaction.to_remove -= wont_be_removed print(' to remove:', transaction.to_remove if transaction.to_remove else 'None') @@ -859,7 +867,8 @@ class Handler: else: transaction.get_to_remove() transaction.get_to_add() - transaction.to_update = transaction.to_add & set(transaction.localpkgs.keys()) + do_syncfirst, updates = transaction.get_updates() + transaction.to_update = set([pkg.name for pkg in updates]) transaction.to_add -= transaction.to_update set_transaction_sum() ConfDialog.show_all() diff --git a/pamac/transaction.py b/pamac/transaction.py index d642e051a0b97886ccd52387caef7648c7ed348f..5dc767df375be46e5500d4e30ad47a6c0725584e 100644 --- a/pamac/transaction.py +++ b/pamac/transaction.py @@ -10,6 +10,7 @@ from pamac import config, common to_remove = set() to_add = set() +to_load = set() to_update = set() to_provide = set() handle = None @@ -43,6 +44,7 @@ Init = proxy.get_dbus_method('Init','org.manjaro.pamac') Sysupgrade = proxy.get_dbus_method('Sysupgrade','org.manjaro.pamac') Remove = proxy.get_dbus_method('Remove','org.manjaro.pamac') Add = proxy.get_dbus_method('Add','org.manjaro.pamac') +Load = proxy.get_dbus_method('Load','org.manjaro.pamac') Prepare = proxy.get_dbus_method('Prepare','org.manjaro.pamac') To_Remove = proxy.get_dbus_method('To_Remove','org.manjaro.pamac') To_Add = proxy.get_dbus_method('To_Add','org.manjaro.pamac')