Bug#1014616: extrepo update fails with "uninitialized value" error

2024-01-16 Thread Wouter Verhelst
Version: 0.11

Hi Adam,

Thanks for your report.

The run function in Update.pm has been removed and merged into Enable.pm
since extrepo 0.10, which means that this bug should be resolved now.

However, I forgot to close the bug report at the time.

Doing so now.

Thanks,

-- 
 w@uter.{be,co.za}
wouter@{grep.be,fosdem.org,debian.org}

I will have a Tin-Actinium-Potassium mixture, thanks.



Bug#1014616: extrepo update fails with "uninitialized value" error

2022-07-08 Thread Adam Dinwoodie
Package: extrepo
Version: 0.10~bpo11+1
Severity: normal

Dear Maintainer,

The `update` command for extrepo appears to be broken.  I see the
following output from running it:

```
$ sudo extrepo update jellyfin
Use of uninitialized value in join or string at 
/usr/share/perl5/Debian/ExtRepo/Data.pm line 22.
Use of uninitialized value in join or string at 
/usr/share/perl5/Debian/ExtRepo/Data.pm line 22.
Use of uninitialized value in join or string at 
/usr/share/perl5/Debian/ExtRepo/Data.pm line 22.
Could not download index YAML file:
400 URL must be absolute at /usr/share/perl5/Debian/ExtRepo/Data.pm line 27.
...propagated at /usr/bin/extrepo line 187.
```

I got half-way to offering a patch -- it looks like the immediate issue
is simply that the `run` function in Update.pm doesn't pass all the
necessary variables when it calls the corresponding function in
Update.pm -- but looking a bit closer, it looks like the function is
more fundamentally broken than that.  As best I can tell from code
reading, the only thing the `update` command does is disable the warning
about nothing actually being updated!

-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (850, 'testing'), (500, 'unstable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf

Kernel: Linux 5.15.32-v8+ (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages extrepo depends on:
ii  gpgv  2.2.27-2+deb11u2
ii  libcryptx-perl0.069-1+b1
ii  libdpkg-perl  1.20.10
ii  libwww-perl   6.52-1
ii  libyaml-libyaml-perl  0.82+repack-1+b1
ii  perl  5.32.1-4+deb11u2

Versions of packages extrepo recommends:
ii  apt [apt-transport-https]  2.2.4

extrepo suggests no packages.

-- Configuration Files:
/etc/extrepo/config.yaml changed:
---
url: https://extrepo-team.pages.debian.net/extrepo-data
dist: debian
version: bullseye
enabled_policies:
- main
- contrib
- non-free


-- no debconf information