Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Björn Esser
186b1a8a2b Fix DNF >= 2.2.0 dbus-signals (rhbz#1440393) 2017-04-10 21:20:38 +02:00
2 changed files with 202 additions and 5 deletions

View file

@ -0,0 +1,187 @@
commit 4b44980b23f28d3c8fb970923cfaf9b469bd284c
Author: Björn Esser <besser82@fedoraproject.org>
Date: Mon Apr 10 20:55:47 2017 +0200
Fix DNF >= 2.2.0 dbus-signals
diff --git a/po/yumex-dnf.pot b/po/yumex-dnf.pot
index 3f74bc3..24d6d60 100644
--- a/po/yumex-dnf.pot
+++ b/po/yumex-dnf.pot
@@ -17,21 +17,21 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
-#: ../src/yumex/__init__.py:112 ../src/yumex/old_init.py:137
+#: ../src/yumex/__init__.py:112
msgid "Refreshing Repository Metadata"
msgstr ""
-#: ../src/yumex/__init__.py:119 ../src/yumex/old_init.py:144
+#: ../src/yumex/__init__.py:119
msgid "Could not refresh the DNF cache (root)"
msgstr ""
-#: ../src/yumex/__init__.py:124 ../src/yumex/old_init.py:149
+#: ../src/yumex/__init__.py:124
msgid ""
"DNF root backend was not authorized.\n"
"Yum Extender will exit"
msgstr ""
-#: ../src/yumex/__init__.py:129 ../src/yumex/old_init.py:154
+#: ../src/yumex/__init__.py:129
msgid ""
"DNF is locked by another process.\n"
"\n"
@@ -43,35 +43,32 @@ msgid "Reloading package information..."
msgstr ""
#: ../src/yumex/__init__.py:746 ../src/yumex/__init__.py:829
-#: ../src/yumex/old_init.py:266 ../src/yumex/old_init.py:1047
msgid "Searching for dependencies"
msgstr ""
#: ../src/yumex/__init__.py:748 ../src/yumex/__init__.py:831
-#: ../src/yumex/old_init.py:268 ../src/yumex/old_init.py:1049
msgid "Dependencies resolved"
msgstr ""
#. Ok pressed
#: ../src/yumex/__init__.py:762 ../src/yumex/__init__.py:839
-#: ../src/yumex/dnf_backend.py:206 ../src/yumex/old_init.py:276
-#: ../src/yumex/old_init.py:1063
+#: ../src/yumex/dnf_backend.py:206
msgid "Applying changes to the system"
msgstr ""
-#: ../src/yumex/__init__.py:787 ../src/yumex/old_init.py:1088
+#: ../src/yumex/__init__.py:787
msgid "Error checking package signatures\n"
msgstr ""
-#: ../src/yumex/__init__.py:793 ../src/yumex/old_init.py:1094
+#: ../src/yumex/__init__.py:793
msgid "Downloading error(s)\n"
msgstr ""
-#: ../src/yumex/__init__.py:799 ../src/yumex/old_init.py:1100
+#: ../src/yumex/__init__.py:799
msgid "Error in transaction\n"
msgstr ""
-#: ../src/yumex/__init__.py:814 ../src/yumex/old_init.py:254
+#: ../src/yumex/__init__.py:814
#, python-format
msgid "Installing package: %s"
msgstr ""
@@ -81,7 +78,7 @@ msgstr ""
msgid "%s was installed successfully"
msgstr ""
-#: ../src/yumex/__init__.py:820 ../src/yumex/old_init.py:259
+#: ../src/yumex/__init__.py:820
#, python-format
msgid "Removing package: %s"
msgstr ""
@@ -91,7 +88,7 @@ msgstr ""
msgid "%s was removed successfully"
msgstr ""
-#: ../src/yumex/__init__.py:826 ../src/yumex/old_init.py:264
+#: ../src/yumex/__init__.py:826
msgid "Updating all available updates"
msgstr ""
@@ -100,31 +97,30 @@ msgid "Available updates was applied successfully"
msgstr ""
#: ../src/yumex/__init__.py:846 ../src/yumex/__init__.py:896
-#: ../src/yumex/old_init.py:286 ../src/yumex/old_init.py:1149
msgid "Error(s) in search for dependencies"
msgstr ""
-#: ../src/yumex/__init__.py:862 ../src/yumex/old_init.py:1115
+#: ../src/yumex/__init__.py:862
msgid "Preparing system for applying changes"
msgstr ""
-#: ../src/yumex/__init__.py:873 ../src/yumex/old_init.py:1126
+#: ../src/yumex/__init__.py:873
msgid "Can't remove protected package(s)"
msgstr ""
-#: ../src/yumex/__init__.py:887 ../src/yumex/old_init.py:1140
+#: ../src/yumex/__init__.py:887
msgid "No pending actions in queue"
msgstr ""
-#: ../src/yumex/__init__.py:891 ../src/yumex/old_init.py:1144
+#: ../src/yumex/__init__.py:891
msgid "Error(s) in building transaction"
msgstr ""
-#: ../src/yumex/__init__.py:1013 ../src/yumex/old_init.py:789
+#: ../src/yumex/__init__.py:1013
msgid "Adding packages to view"
msgstr ""
-#: ../src/yumex/__init__.py:1064 ../src/yumex/old_init.py:728
+#: ../src/yumex/__init__.py:1064
msgid "Error in undo history transaction"
msgstr ""
@@ -277,29 +273,6 @@ msgstr ""
msgid "Enhancement"
msgstr ""
-#: ../src/yumex/old_init.py:283
-msgid "Changes was successfully applied to the system"
-msgstr ""
-
-#: ../src/yumex/old_init.py:1305
-msgid ""
-"\n"
-"\n"
-"Yum Extender will close"
-msgstr ""
-
-#: ../src/yumex/old_init.py:1307
-msgid "Error in starting notification icon"
-msgstr ""
-
-#: ../src/yumex/old_init.py:1331
-msgid "Yum Extender will close"
-msgstr ""
-
-#: ../src/yumex/old_init.py:1333
-msgid "Error in locking notification icon"
-msgstr ""
-
#. timeout 10s
#: ../src/yumex/updater.py:68
msgid "Not Now"
diff --git a/src/yumex/const.py b/src/yumex/const.py
index ce8cdb6..b4f7027 100644
--- a/src/yumex/const.py
+++ b/src/yumex/const.py
@@ -129,7 +129,8 @@ HISTORY_STATE_LABLES = {
'Install': _('Installed packages'),
'True-Install': _('Installed packages'),
'Dep-Install': _('Installed for dependencies'),
- 'Reinstall': _('Reinstalled packages')}
+ 'Reinstall': _('Reinstalled packages')
+}
TRANSACTION_RESULT_TYPES = {
@@ -149,6 +150,9 @@ RPM_ACTIONS = {
'obsolete': _("Obsoleting: %s"),
'downgrade': _("Downgrading: %s"),
'verify': _("Verifying: %s"),
+ 'scriptlet': _("Running scriptlet: %s"),
+ 'preptrans': _("Preparing transaction: %s"),
+ 'posttrans': _("Post-transaction script: %s")
}
WIDGETS_INSENSITIVE = ["header_menu", "header_filters",

View file

@ -2,7 +2,7 @@
Name: %{appname}-dnf
Version: 4.3.3
Release: 4%{?dist}
Release: 4.1%{?dist}
Summary: Yum Extender graphical package management tool
Group: Applications/System
@ -10,7 +10,10 @@ License: GPLv2+
URL: http://yumex.dk
Source0: https://github.com/timlau/yumex-dnf/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-4.3.3_fix_dnf_2_2_0_dbus_signals.patch
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
@ -28,24 +31,25 @@ Graphical package tool for maintain packages on the system
%prep
%setup -q
%autosetup -p 1
%build
make %{?_smp_mflags}
%make_build
%install
make install PYTHON=%{__python3} DESTDIR=%{buildroot} DATADIR=%{_datadir}
%make_install PYTHON=%{__python3} DATADIR=%{_datadir}
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-local.desktop
%find_lang %name
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database %{_datadir}/applications &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
@ -53,9 +57,11 @@ if [ $1 -eq 0 ] ; then
fi
update-desktop-database %{_datadir}/applications &> /dev/null || :
%posttrans
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%doc README.md COPYING
%{_datadir}/%{name}
@ -65,7 +71,11 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
%{_datadir}/icons/hicolor/
%{_datadir}/appdata/*.xml
%changelog
* Mon Apr 10 2017 Björn Esser <besser82@fedoraproject.org> - 4.3.3-4.1
- Fix DNF >= 2.2.0 dbus-signals (rhbz#1440393)
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild