Your message dated Mon, 04 May 2009 21:53:33 +0200
with message-id <[email protected]>
and subject line Re: aptitude: add apt-get -c functionality
has caused the Debian Bug report #499204,
regarding aptitude: add apt-get -c functionality
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
499204: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499204
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: aptitude
Version: 0.4.11.10-1
Severity: wishlist
Tags: patch
This patch allows reading extra configuration from an arbitrary file.
This is useful on environments that use "apt-get -c" because apt-get
doesn't support the "download" command.
--- aptitude-0.4.11.8.orig/src/main.cc 2008-06-08 00:55:35.000000000 +0200
+++ aptitude-0.4.11.8/src/main.cc 2008-09-16 23:40:00.000000000 +0200
@@ -25,6 +25,7 @@
#include <getopt.h>
#include <signal.h>
+#include <sys/stat.h>
#include "aptitude.h"
@@ -325,7 +326,7 @@
aptcfg->Set(PACKAGE "::Delete-Unused-Pattern", "");
// Read the arguments:
- while((curopt=getopt_long(argc, argv, "DVZWvhS:uiF:w:sO:fdyPt:q::Rro:", opts, NULL))!=-1)
+ while((curopt=getopt_long(argc, argv, "DVZWvhS:uiF:w:sO:fdyPt:q::Rrc:o:", opts, NULL))!=-1)
{
switch(curopt)
{
@@ -398,6 +399,16 @@
case 't':
aptcfg->SetNoUser("APT::Default-Release", optarg);
break;
+ case 'c':
+ {
+ struct stat buf;
+ if(stat(optarg, &buf) != 0 || S_ISDIR(buf.st_mode) || !ReadConfigFile(*_config, optarg))
+ {
+ fprintf(stderr, _("Could not read the configuration file %s\n"), optarg);
+ return -1;
+ }
+ }
+ break;
case 'o':
{
string s=optarg;
--- End Message ---
--- Begin Message ---
This feature can be accomplished by other means.
--- End Message ---