Comment 1 for bug 26389

Revision history for this message
Fabrizio Balliano (fabrizio-balliano) wrote :

here you've a diff for enabling multiple package add/remove:

412c412
< if self.cache[pkg.split()[0]].isInstalled:
---
> if self.cache[pkg].isInstalled:
414,415c414
< for tmp in pkg.split():
< self.cache[tmp].markDelete(autoFix=False)
---
> self.cache[pkg].markDelete(autoFix=False)
429,430c428
< for tmp in pkg.split():
< self.cache[pkg].markKeep()
---
> self.cache[pkg].markKeep()
434,435c432
< for tmp in pkg.split():
< self.cache[tmp].markKeep()
---
> self.cache[pkg].markKeep()
445,446c442
< for tmp in pkg.split():
< self.cache[tmp].markInstall(autoFix=True)
---
> self.cache[pkg].markInstall(autoFix=True)
603c599
< if self.cache.has_key(pkgname.split()[0]):
---
> if self.cache.has_key(pkgname):
694c690
< installed = self.cache[name.split()[0]].isInstalled
---
> installed = self.cache[name].isInstalled
712,714c708,709
< for tmp in name.split():
< selections.append(("%s\tuninstall" % tmp, path))
< packages.append(name)
---
> selections.append(("%s\tuninstall" % name, path))
> packages.append(name)
716,718c711,712
< for tmp in name.split():
< selections.append(("%s\tinstall" % tmp, path))
< packages.append(name)
---
> selections.append(("%s\tinstall" % name, path))
> packages.append(name)
830,832c824,825
< for tmp in name.split():
< if not self.cache[tmp].isInstalled:
< to_remove.append(gtk.TreeRowReference(store, path))
---
> if not self.cache[name].isInstalled:
> to_remove.append(gtk.TreeRowReference(store, path))
1258c1251
< pkg = self.cache[package_name.split()[0]]
---
> pkg = self.cache[package_name]