[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#720532: dselect: Command line option 'f' [from -f] is not known



On Fri, Aug 23, 2013 at 09:13:20AM +0200, Domenico Andreoli wrote:
> Package: apt
> Version: 0.9.11
> Severity: important

Thanks for your bugreport.
 
>   apt 0.9.11 breaks dselect, which complains loudly when I try to update
> from sources (I use the apt backend):
> 
> | E: Command line option 'f' [from -f] is not known.
> | 
> | dselect: warning: subprocess update available list script returned error exit status 1
> | Press <enter> to continue.
> 
> I see that between 0.9.10 and 0.9.11 there is some refactoring around the
> command line [0].  Maybe some option has been left over?
> 
> I don't know how many other dselect users are left with me but the regression
> is quite serious for "us". Is it possible to investigate further?
[..]

The attached patch should fix that, the commandline parser got a bit
stricter, this caused this bug.

Cheers,
 Michael
>From 17e4360804ffd2b5530b8ceb0e42834eb99e526e Mon Sep 17 00:00:00 2001
From: Michael Vogt <mvo@debian.org>
Date: Fri, 23 Aug 2013 13:44:21 +0200
Subject: [PATCH] dselect/update: remove "-f" option as its not being used in
 the context of apt-get update

---
 dselect/update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dselect/update b/dselect/update
index 411033c..487fbf2 100755
--- a/dselect/update
+++ b/dselect/update
@@ -6,7 +6,7 @@ TEXTDOMAIN="apt"
 
 # Get the configuration from /etc/apt/apt.conf
 CLEAN="prompt"
-OPTS="-f"
+OPTS=""
 APTGET="/usr/bin/apt-get"
 APTCACHE="/usr/bin/apt-cache"
 DPKG="/usr/bin/dpkg"
-- 
1.8.3.2


Reply to: