Bug#143610: marked as done (Ingnoring missing packages with apt)
Your message dated Thu, 25 Apr 2002 00:06:32 -0600 (MDT)
with message-id <Pine.LNX.3.96.1020425000626.13797I-100000@wakko.debian.net>
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 twi@irb.cs.uni-dortmund.de Fri Apr 19 11:27:38 2002
Return-path: <twi@irb.cs.uni-dortmund.de>
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 <submit@bugs.debian.org>; Fri, 19 Apr 2002 18:27:33 +0200 (MES)
Message-Id: <[🔎] 200204191627.g3JGRXQ08299@dolly.cs.uni-dortmund.de>
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: submit@bugs.debian.org
Subject: Ingnoring missing packages with apt
From: Thorsten Wilmer <twi@irb.cs.uni-dortmund.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Fri, 19 Apr 2002 18:27:33 +0200
Sender: twi@irb.cs.uni-dortmund.de
Delivered-To: submit@bugs.debian.org
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 twi@irb.informatik.uni-dortmund.de
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 jgg@debian.org Thu Apr 25 01:06:33 2002
Return-path: <jgg@debian.org>
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 <jgg@debian.org>)
by cast-ext.ab.videon.ca (qmail-ldap-1.03) with SMTP
for <143610-done@bugs.debian.org>; 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 <143610-done@bugs.debian.org>; Thu, 25 Apr 2002 00:06:32 -0600
Date: Thu, 25 Apr 2002 00:06:32 -0600 (MDT)
From: Jason Gunthorpe <jgg@debian.org>
X-Sender: jgg@wakko.debian.net
To: 143610-done@bugs.debian.org
Subject: Re: Bug#143610: Ingnoring missing packages with apt (fwd)
Message-ID: <Pine.LNX.3.96.1020425000626.13797I-100000@wakko.debian.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 143610-done@bugs.debian.org
---------- Forwarded message ----------
Date: Sat, 20 Apr 2002 00:38:31 -0600 (MDT)
From: Jason Gunthorpe <jgg@debian.org>
To: Thorsten Wilmer <wilmer00@marvin.cs.uni-dortmund.de>
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 deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: