use Target::cleanCache
authorMichael Andres <ma@suse.de>
Wed, 30 Apr 2008 11:47:19 +0000 (11:47 +0000)
committerMichael Andres <ma@suse.de>
Wed, 30 Apr 2008 11:47:19 +0000 (11:47 +0000)
src/zypper-repos.cc

index 3e7cbf7..1629b8e 100644 (file)
@@ -1115,8 +1115,8 @@ void clean_repos(Zypper & zypper)
     zypper.out().info(_("Cleaning installed packages cache."), Out::HIGH);
     try
     {
-#warning NEED TO CALL Target::cleanCache()
-      // manager.cleanTargetCache();
+      init_target(zypper);
+      God->target()->cleanCache();
     }
     catch (...)
     {