Bug#1053644: apt-listbugs: Question about confirming update not accept "Y"

2023-10-07 Thread Francesco Poli
Control: tags -1 + unreproducible


On Sat, 07 Oct 2023 21:32:00 +0200 lukasz wrote:

> Package: apt-listbugs
> Version: 0.1.40
> Severity: minor
> X-Debbugs-Cc: thel...@gmail.com
> 
> Dear Maintainer,

Hello and thanks for your bug report!

> 
> *** Reporter, please consider answering these questions, where appropriate ***
> 
>   - What led up to the situation?
>Found 2 bugs in firefox package and asked me about confirming my 
> installation.
>   - What exactly did you do (or not do) that was effective (or ineffective)?
>I typed "Y" as the prompt asked me for.
>   - What was the outcome of this action?
>The package apt-listbugs prompted help menu for me informing that "y" is 
> the correct option, but not "Y"
>   - What outcome did you expect instead? 
>Confirm installation with "Y"as the prompt asked me.

I cannot reproduce the behavior you are reporting.

What I see is that both 'y' and 'Y' are equivalent answers:

  Are you sure you want to install/upgrade the above packages? [Y/n/?/...] Y

and

  Are you sure you want to install/upgrade the above packages? [Y/n/?/...] y

lead to the same result.

And there's a reason for that: there's code that converts the answers
to lower case, whatever the user entered.
See /usr/lib/ruby/vendor_ruby/aptlistbugs/logic.rb:492

  answer = a.downcase

Maybe you added some blank character, before or after the 'Y' answer?
Could this explain what you experienced?
Please let me know.

If this is the case, well, maybe I could change that line into:

  answer = a.downcase.strip

I will think about this possibility...



-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
. Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE


pgp0Be5Mjkss1.pgp
Description: PGP signature


Bug#1053644: apt-listbugs: Question about confirming update not accept "Y"

2023-10-07 Thread lukasz
Package: apt-listbugs
Version: 0.1.40
Severity: minor
X-Debbugs-Cc: thel...@gmail.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

  - What led up to the situation?
   Found 2 bugs in firefox package and asked me about confirming my 
installation.
  - What exactly did you do (or not do) that was effective (or ineffective)?
   I typed "Y" as the prompt asked me for.
  - What was the outcome of this action?
   The package apt-listbugs prompted help menu for me informing that "y" is the 
correct option, but not "Y"
  - What outcome did you expect instead? 
   Confirm installation with "Y"as the prompt asked me.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-listbugs depends on:
ii  apt 2.7.6
ii  ruby1:3.1
ii  ruby-debian 0.3.10+b8
ii  ruby-gettext3.3.3-2
ii  ruby-soap4r 2.0.5-6
ii  ruby-unicode0.4.4.4-1+b5
ii  ruby-xmlparser  0.7.3-4+b4

Versions of packages apt-listbugs recommends:
ii  ruby-httpclient  2.8.3+git20211122.4658227-1

Versions of packages apt-listbugs suggests:
ii  firefox [www-browser]  118.0-1+b1
ii  lynx [www-browser] 2.9.0dev.12-1
ii  reportbug  12.0.0
ii  sensible-utils 0.0.20
ii  xdg-utils  1.1.3-4.1

-- no debconf information