Report forwarded to awpguy@acs.ucalgary.ca (Andy W.P. Guy):
Bug#7811; Package dpkg-ftp.
awpguy@acs.ucalgary.ca (Andy W.P. Guy)
Subject: Bug#7811: Bug with passive mode selection (also avail-list update)
Reply-To: Charles Briscoe-Smith , 7811-maintonly@bugs.debian.org
Resent-From: Charles Briscoe-Smith
Resent-To: awpguy@acs.ucalgary.ca (Andy W.P. Guy)
Resent-Date: Tue, 04 Mar 1997 18:33:03 GMT
Resent-Message-ID:
Resent-Sender: iwj@debian.org
X-Debian-PR-Package: dpkg-ftp
X-Debian-PR-Keywords:
X-Loop: owner@bugs.debian.org
Received: via spool by maintonly@bugs.debian.org id=M.85749965814455
(code M ref -1); Tue, 04 Mar 1997 18:33:03 GMT
Message-Id: <199703041811.SAA21295@elm.ukc.ac.uk>
To: maintonly@bugs.debian.org
Date: Tue, 04 Mar 1997 18:11:33 +0000
From: Charles Briscoe-Smith
Package: dpkg-ftp
Version: 1.4.8
(This contributes to bug #6210; I don't know how to contribute directly
to that bug, though.)
Kazuhiro Sasayama wrote:
> During the update of available list by `dpkg-ftp', it asks "Do you
> want to clear available list [y]," but does not clear it even if the
> answer is y or just an enter.
>
> The test in /usr/lib/dpkg/methods/ftp/update ($ans =~ /^Yy/) is
> wrong. It needs [] around Yy as /^[Yy]/.
I just came across this, too. While fixing it, I noticed that the same
error was in the code for selecting whether passive mode is used. Here
are my patches:
--- /usr/lib/dpkg/methods/ftp/update.orig Tue Mar 4 17:35:32 1997
+++ /usr/lib/dpkg/methods/ftp/update Tue Mar 4 18:07:59 1997
@@ -120,7 +120,7 @@
print "Do you want to clear available list [y]: ";
$ans=;
chomp $ans;
- if($ans =~ /^Yy/) {
+ if($ans eq "" or $ans =~ /^[Yy]/) {
if(system("dpkg", "--clear-avail")) {
print "dpkg --clear-avail failed.";
die "error";
--- /usr/lib/dpkg/methods/ftp/setup.orig Tue Mar 4 17:36:37 1997
+++ /usr/lib/dpkg/methods/ftp/setup Tue Mar 4 18:05:23 1997
@@ -71,7 +71,7 @@
$ans=;
chomp $ans;
if($ans ne "") {
- if($ans =~ /^Yy/) {
+ if($ans =~ /^[Yy]/) {
$::passive=1;
} else {
$::passive=0;
Thanks,
--Charles
Acknowledgement sent to Charles Briscoe-Smith <cpb4@ukc.ac.uk>:
New bug report received and forwarded. Copy sent to awpguy@acs.ucalgary.ca (Andy W.P. Guy).
-t
From: owner@bugs.debian.org (Ian Jackson)
To: Charles Briscoe-Smith
Subject: Bug#7811: Acknowledgement of maintainer-only report
(was: Bug with passive mode selection (also avail-list update))
Message-ID:
In-Reply-To: <199703041811.SAA21295@elm.ukc.ac.uk>
References: <199703041811.SAA21295@elm.ukc.ac.uk>
Thank you for the problem report you have sent regarding Debian Linux.
This is an automatically generated reply, to let you know your message has
been received. It is being forwarded to the developers (but not the mailing
list, as you requested) for their attention; they will reply in due course.
Your message has been sent to the package maintainer(s):
awpguy@acs.ucalgary.ca (Andy W.P. Guy)
If you wish to submit further information on your problem, please send
it to 7811-maintonly@bugs.debian.org (and *not*
to maintonly@bugs.debian.org).
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(maintainer, Debian bug tracking system)
Received: (at maintonly) by bugs.debian.org; 4 Mar 1997 18:20:58 +0000
Received: (qmail 14446 invoked from network); 4 Mar 1997 18:20:56 -0000
Received: from mercury.ukc.ac.uk (@129.12.21.10)
by master.debian.org with SMTP; 4 Mar 1997 18:20:54 -0000
Received: from elm.ukc.ac.uk by mercury.ukc.ac.uk with SMTP (PP);
Tue, 4 Mar 1997 18:12:01 +0000
Received: from localhost by elm.ukc.ac.uk (SMI-8.6/UKC-2.14) id SAA21295;
Tue, 4 Mar 1997 18:11:33 GMT
Message-Id: <199703041811.SAA21295@elm.ukc.ac.uk>
To: maintonly@bugs.debian.org
Subject: Bug with passive mode selection (also avail-list update)
Date: Tue, 04 Mar 1997 18:11:33 +0000
From: Charles Briscoe-Smith
Package: dpkg-ftp
Version: 1.4.8
(This contributes to bug #6210; I don't know how to contribute directly
to that bug, though.)
Kazuhiro Sasayama wrote:
> During the update of available list by `dpkg-ftp', it asks "Do you
> want to clear available list [y]," but does not clear it even if the
> answer is y or just an enter.
>
> The test in /usr/lib/dpkg/methods/ftp/update ($ans =~ /^Yy/) is
> wrong. It needs [] around Yy as /^[Yy]/.
I just came across this, too. While fixing it, I noticed that the same
error was in the code for selecting whether passive mode is used. Here
are my patches:
--- /usr/lib/dpkg/methods/ftp/update.orig Tue Mar 4 17:35:32 1997
+++ /usr/lib/dpkg/methods/ftp/update Tue Mar 4 18:07:59 1997
@@ -120,7 +120,7 @@
print "Do you want to clear available list [y]: ";
$ans=;
chomp $ans;
- if($ans =~ /^Yy/) {
+ if($ans eq "" or $ans =~ /^[Yy]/) {
if(system("dpkg", "--clear-avail")) {
print "dpkg --clear-avail failed.";
die "error";
--- /usr/lib/dpkg/methods/ftp/setup.orig Tue Mar 4 17:36:37 1997
+++ /usr/lib/dpkg/methods/ftp/setup Tue Mar 4 18:05:23 1997
@@ -71,7 +71,7 @@
$ans=;
chomp $ans;
if($ans ne "") {
- if($ans =~ /^Yy/) {
+ if($ans =~ /^[Yy]/) {
$::passive=1;
} else {
$::passive=0;
Thanks,
--Charles