[Aptitude-svn-commit] r3737 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Mon Aug 8 17:44:24 UTC 2005


Author: dburrows
Date: Mon Aug  8 17:44:21 2005
New Revision: 3737

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/download.cc
Log:
Fix the download code for the refcounting protocol.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Aug  8 17:44:21 2005
@@ -1,5 +1,9 @@
 2005-08-08  Daniel Burrows  <dburrows at debian.org>
 
+	* src/download.cc:
+
+	  Fix the download code for the refcounting protocol.
+
 	* src/broken_indicator.cc, src/broken_indicator.h:
 
 	  Fix the broken_indicator class to work in the presence of

Modified: branches/aptitude-0.3/aptitude/src/download.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/download.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/download.cc	Mon Aug  8 17:44:21 2005
@@ -171,10 +171,10 @@
 
   if(aptcfg->FindB(PACKAGE "::AutoClean-After-Update", false))
     {
-      vscreen_widget *msg=NULL;
+      vs_widget_ref msg = NULL;
       if(!text_download)
 	{
-	  msg=new vs_center(new vs_frame(new vs_label(_("Deleting obsolete downloaded files"))));
+	  msg=vs_center::create(vs_frame::create(vs_label::create(_("Deleting obsolete downloaded files"))));
 	  popup_widget(msg);
 	  vscreen_tryupdate();
 	}
@@ -186,7 +186,7 @@
       cleaner.Go(aptcfg->FindDir("Dir::Cache::archives")+"partial/",
 		 *apt_cache_file);
 
-      if(msg)
+      if(msg.valid())
 	msg->destroy();
     }
 



More information about the Aptitude-svn-commit mailing list