[jhbuild/external-deps: 8/19] Implement uninstall



commit c02894321d1291bef001b497185bb8366ce740d5
Author: John Carr <john carr unrouted co uk>
Date:   Thu May 28 17:04:59 2009 +0100

    Implement uninstall
---
 jhbuild/utils/systempackages.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/jhbuild/utils/systempackages.py b/jhbuild/utils/systempackages.py
index f9608c2..7d3d51b 100644
--- a/jhbuild/utils/systempackages.py
+++ b/jhbuild/utils/systempackages.py
@@ -87,8 +87,11 @@ class DebianPackages(SystemPackages):
         cache.open(apt.progress.OpProgress())
 
     def remove(self, names):
-        #buildscript.execute(['apt-get', 'remove', ' '.join(name)])
-        pass
+        cache = apt.Cache()
+        for name in names:
+            cache[name].markDelete()
+        cache.commit()
+        cache.open()
 
     def supported(cls):
         try:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]