Here is an updated patch to fix this bug. It is based on 0.63.1 and
includes diffs of changelog.

+++ Oliver
=== modified file 'common/rconfiguration.cc'
--- common/rconfiguration.cc	2006-02-24 11:27:00 +0000
+++ common/rconfiguration.cc	2010-03-03 16:25:27 +0000
@@ -98,6 +98,22 @@
 
    cfile.close();
 
+   // quick fix to store the option 'consider recommended packages as dependencies'
+   string aptConfPath = _config->Find("Dir", "/")
+                      + _config->Find("Dir::Etc", "etc/apt/")
+                      + _config->Find("Dir::Etc:parts", "apt.conf.d")
+                      + "/99synaptic";
+   ofstream aptfile(aptConfPath.c_str(), ios::out);
+   if (!aptfile != 0) {
+      cerr << "couldn't open " << aptConfPath.c_str() << " for writing APT::Install-Recommends" << endl;
+   } else {
+      if (_config->FindB("APT::Install-Recommends", false))
+         aptfile << "APT::Install-Recommends \"true\";" << endl;
+      else
+         aptfile << "APT::Install-Recommends \"false\";" << endl;
+      aptfile.close();
+   }
+
    return true;
 }
 

=== modified file 'debian/changelog'
--- debian/changelog	2010-02-24 21:05:02 +0000
+++ debian/changelog	2010-03-03 16:29:26 +0000
@@ -1,3 +1,12 @@
+synaptic (0.63.1ubuntu3) UNRELEASED; urgency=low
+
+  [ Oliver Joos ]
+  * common/rconfiguration.cc:
+    - fix to store setting "Consider recommended packages as dependencies"
+      (closes #440027 and LP: #154349)
+
+ -- Oliver Joos <oliver.j...@hispeed.ch>  Wed, 03 Mar 2010 17:28:20 +0100
+
 synaptic (0.63.1ubuntu2) UNRELEASED; urgency=low
 
   [ Jean-Baptiste Lallement ]


Reply via email to