forked from cromer/pamac-classic
fix check updates freeze when an aur pkg was removed
This commit is contained in:
parent
2e05a2e9a6
commit
3873dbdc69
@ -467,6 +467,7 @@ class PamacDBusService(dbus.service.Object):
|
|||||||
self.aur_updates_pkgs = aur.multiinfo(self.local_packages)
|
self.aur_updates_pkgs = aur.multiinfo(self.local_packages)
|
||||||
self.aur_updates_checked = True
|
self.aur_updates_checked = True
|
||||||
for aur_pkg in self.aur_updates_pkgs:
|
for aur_pkg in self.aur_updates_pkgs:
|
||||||
|
if self.localdb.get_pkg(aur_pkg.name):
|
||||||
comp = pyalpm.vercmp(aur_pkg.version, self.localdb.get_pkg(aur_pkg.name).version)
|
comp = pyalpm.vercmp(aur_pkg.version, self.localdb.get_pkg(aur_pkg.name).version)
|
||||||
if comp == 1:
|
if comp == 1:
|
||||||
updates.append((aur_pkg.name, aur_pkg.version, aur_pkg.db.name, aur_pkg.tarpath, aur_pkg.download_size))
|
updates.append((aur_pkg.name, aur_pkg.version, aur_pkg.db.name, aur_pkg.tarpath, aur_pkg.download_size))
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
version = '0.9.5'
|
version = '0.9.6'
|
||||||
|
|
||||||
from gi.repository import Gtk, Gdk
|
from gi.repository import Gtk, Gdk
|
||||||
from gi.repository.GdkPixbuf import Pixbuf
|
from gi.repository.GdkPixbuf import Pixbuf
|
||||||
|
Loading…
Reference in New Issue
Block a user