Your message dated Thu, 25 Apr 2002 00:06:32 -0600 (MDT)
with message-id <[EMAIL PROTECTED]>
and subject line Bug#143610: Ingnoring missing packages with apt (fwd)
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Apr 2002 16:27:38 +0000
>From [EMAIL PROTECTED] Fri Apr 19 11:27:38 2002
Return-path: <[EMAIL PROTECTED]>
Received: from waldorf.cs.uni-dortmund.de [129.217.4.42]
by master.debian.org with esmtp (Exim 3.12 1 (Debian))
id 16ybEY-0005S3-00; Fri, 19 Apr 2002 11:27:38 -0500
Received: from dolly.cs.uni-dortmund.de (dolly [129.217.24.155])
by waldorf.cs.uni-dortmund.de with ESMTP id g3JGRXb27154
for <[EMAIL PROTECTED]>; Fri, 19 Apr 2002 18:27:33 +0200 (MES)
Message-Id: <[EMAIL PROTECTED]>
Received: from dolly (localhost [127.0.0.1])
by dolly.cs.uni-dortmund.de id g3JGRXQ08299; Fri, 19 Apr 2002 18:27:33
+0200 (MET DST)
X-Mailer: exmh version 2.3.1 01/18/2001 with version: MH 6.8.4 #1[UCI]
To: [EMAIL PROTECTED]
Subject: Ingnoring missing packages with apt
From: Thorsten Wilmer <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 19 Apr 2002 18:27:33 +0200
Sender: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Package: apt
Version: 0.5.4
Fai and maybe others who want to install packages
automatically with apt need a feature, to add lists of
packages to apt-get on the commandline for installing,
while apt has to ignore or atleast not stop if it cannot
find an appropriate Package.
Perhaps this could be managed through a command line option/
config option.
For me worked the following patch, which does only the trivial
thing: ignoring any error. Please ignore, that I messed up
the version numbers...
Yours,
Thorsten Wilmer
diff -ru apt-1.5.4/cmdline/apt-get.cc apt-0.5.4/cmdline/apt-get.cc
--- apt-1.5.4/cmdline/apt-get.cc Fri Apr 19 18:14:31 2002
+++ apt-0.5.4/cmdline/apt-get.cc Mon Jul 2 00:59:04 2001
@@ -927,8 +927,8 @@
{
/* We want to continue searching for regex hits, so we return false here
otherwise this is not really an error. */
- if (AllowFail == false)
- return false;
+ if (AllowFail == false)
+ return false;
ioprintf(c1out,_("Package %s is not installed, so not removed\n"),Pkg.Nam
e());
return true;
}
@@ -982,9 +982,8 @@
}
ShowList(c1out,_("However the following packages replace it:"),List);
}
- ioprintf(c1out, _("Package %s has no installation candidate ERROR"),Pkg.Na
me());
-
- /*_error->Error(_("Package %s has no installation candidate"),Pkg.Name())
;*/
+
+ _error->Error(_("Package %s has no installation candidate"),Pkg.Name());
return false;
}
@@ -1318,11 +1317,8 @@
for (I = S; *I != 0; I++)
if (*I == '.' || *I == '?' || *I == '*' || *I == '|')
break;
- if (*I == 0){
-
- ioprintf(c1out,_("Couldn't find package %s ERROR\n"),S);
- /* return _error->Error(_("Couldn't find package %s"),S);*/
- }
+ if (*I == 0)
+ return _error->Error(_("Couldn't find package %s"),S);
// Regexs must always be confirmed
ExpectedInst += 1000;
@@ -1354,8 +1350,8 @@
}
regfree(&Pattern);
- /*if (Hit == false)
- return _error->Error(_("Couldn't find package %s"),S);*/
+ if (Hit == false)
+ return _error->Error(_("Couldn't find package %s"),S);
}
else
{
--
------------------------------------------------------------
Thorsten Wilmer [EMAIL PROTECTED]
Universitaet Dortmund UNI DO//
FB Informatik, IRB Tel.: +49 231 755 2422 ___ ////
D-44221 Dortmund Fax.: +49 231 755 2386 \*\\///
Germany \\\\/
------------------------------------------------------------
---------------------------------------
Received: (at 143610-done) by bugs.debian.org; 25 Apr 2002 06:06:33 +0000
>From [EMAIL PROTECTED] Thu Apr 25 01:06:33 2002
Return-path: <[EMAIL PROTECTED]>
Received: from cast-ext.ab.videon.ca [206.75.216.34]
by master.debian.org with smtp (Exim 3.12 1 (Debian))
id 170cOn-0004Bd-00; Thu, 25 Apr 2002 01:06:33 -0500
Received: (qmail 27062 invoked from network); 25 Apr 2002 06:06:32 -0000
Received: from unknown (HELO wakko.debian.net) ([24.86.210.128])
(envelope-sender <[EMAIL PROTECTED]>)
by cast-ext.ab.videon.ca (qmail-ldap-1.03) with SMTP
for <[EMAIL PROTECTED]>; 25 Apr 2002 06:06:32 -0000
Received: from localhost
([127.0.0.1] helo=wakko.debian.net ident=jgg)
by wakko.debian.net with smtp (Exim 3.16 #1 (Debian))
id 170cOm-0003me-00
for <[EMAIL PROTECTED]>; Thu, 25 Apr 2002 00:06:32 -0600
Date: Thu, 25 Apr 2002 00:06:32 -0600 (MDT)
From: Jason Gunthorpe <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Bug#143610: Ingnoring missing packages with apt (fwd)
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: [EMAIL PROTECTED]
---------- Forwarded message ----------
Date: Sat, 20 Apr 2002 00:38:31 -0600 (MDT)
From: Jason Gunthorpe <[EMAIL PROTECTED]>
To: Thorsten Wilmer <[EMAIL PROTECTED]>
Subject: Re: Bug#143610: Ingnoring missing packages with apt
On Sat, 20 Apr 2002, Thorsten Wilmer wrote:
> This is impossible, I _have_ tried to fix this with
> apt-cache.
I fail to see what is wrong with matching the list you are going to give
to apt-get against this list:
apt-cache dumpavail | grep ^Package | cut -d ' ' -f 2
And removing any not listed.
Jason
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]