Package: how-can-i-help
Version: 18
Severity: important
Tags: patch

Dear Maintainer,

Running how-can-i-help outputs nothing past the initial banner, due to an 
undefined variable:

```
# how-can-i-help
======  How can you help?  (doc: https://wiki.debian.org/how-can-i-help ) ======

/usr/bin/how-can-i-help:338:in `<main>': undefined local variable or method 
`autorm_header_done' for main:Object (NameError)

    autorm_header_done == 0
    ^^^^^^^^^^^^^^^^^^
Did you mean?  autorm_date
```

Looking at the code following it, this should probably be:

```
autorm_header_done = 0
```

Instead.

Regards,


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

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

Versions of packages how-can-i-help depends on:
ii  libruby3.1t64 [ruby-json]  3.1.2-8.3
ii  ruby                       1:3.1+nmu1
ii  ruby-debian                0.3.10+b10
ii  ruby-json                  2.7.2+dfsg-1

how-can-i-help recommends no packages.

how-can-i-help suggests no packages.

-- no debconf information
--- /usr/bin/how-can-i-help.orig        2024-05-07 19:30:22.689794285 +0200
+++ /usr/bin/how-can-i-help     2024-05-07 19:30:32.785627292 +0200
@@ -335,7 +335,7 @@
       autorm_date = Time.now.to_date + $autorm_days
       autorm = "until #{autorm_date.to_s} "
     end
-    autorm_header_done == 0
+    autorm_header_done = 0
     autoremoval.sort_by { |r| [r['source'], r['package']] }.each do |r|
       next if defined?($autorm_days) && Time.at(r['removal_time']).to_date > 
autorm_date
       if autorm_header_done == 0

Reply via email to