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

Daniel Burrows dburrows at costa.debian.org
Mon Sep 26 05:56:46 UTC 2005


Author: dburrows
Date: Mon Sep 26 05:56:35 2005
New Revision: 4279

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/ui.cc
Log:
Make the cache read-only while a download is going on...sorta

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Sep 26 05:56:35 2005
@@ -1,5 +1,9 @@
 2005-09-25  Daniel Burrows  <dburrows at debian.org>
 
+	* src/ui.cc:
+
+	  Make the package cache read-only while a download is going on.
+
 	* src/vscreen/config/colors.cc:
 
 	  Actually set default_colors_avail based on the result of

Modified: branches/aptitude-0.3/aptitude/src/ui.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/ui.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/ui.cc	Mon Sep 26 05:56:35 2005
@@ -901,6 +901,9 @@
 {
   active_download=true;
 
+  if(apt_cache_file != NULL)
+    (*apt_cache_file)->set_read_only(true);
+
   if(active_preview.valid())
     active_preview->destroy();
 
@@ -1273,6 +1276,9 @@
 {
   active_download = true;
 
+  if(apt_cache_file != NULL)
+    (*apt_cache_file)->set_read_only(true);
+
   vs_progress_ref p = gen_progress_bar();
 
   download_manager *m = gen_download_progress(false, true,



More information about the Aptitude-svn-commit mailing list