Package: extrepo
Version: 0.6
Severity: wishlist

These could raise nicer warnings:

$ extrepo
Use of uninitialized value $cmdlower in ucfirst at /usr/bin/extrepo line 98.
Undefined subroutine &Debian::ExtRepo::Commands::::run called at (eval 15) line 
1.
        ...propagated at /usr/bin/extrepo line 102.

$ extrepo --help
syntax error at (eval 15) line 1, near "Debian::ExtRepo::Commands::--"
        ...propagated at /usr/bin/extrepo line 102.


This should be a syntax error:

$ extrepo update
gpgv: Signatur vom Fr 20 Dez 2019 09:17:24 CET
gpgv:                mittels RSA-Schlüssel 
7A8502E9FF4765B162A964171283BEE904FB0E04
gpgv: Korrekte Signatur von "Debian external repositories signing key 
(experimental)"


Repository  does not exist! at 
/usr/share/perl5/Debian/ExtRepo/Commands/Enable.pm line 18.
        ...propagated at /usr/bin/extrepo line 102.


The search command should separate the output with newlines:

$ extrepo search
gpgv: Signatur vom Fr 20 Dez 2019 09:17:24 CET
gpgv:                mittels RSA-Schlüssel 
7A8502E9FF4765B162A964171283BEE904FB0E04
gpgv: Korrekte Signatur von "Debian external repositories signing key 
(experimental)"


Found debian_official:
---
components:
- main
- contrib
- non-free
contact: ftpmas...@debian.org
description: Configuration for the official Debian repository. It should not be 
managed
  through extrepo.
gpg-key-checksum:
  sha256: 9c854992fc6c423efe8622c3c326a66e73268995ecbe8f685129063206a18043
gpg-key-file: debian_official.asc
policies:
  contrib: contrib
  main: main
  non-free: non-free
source:
  Components: <COMPONENTS>
  Suites: bullseye
  Types: deb deb-src
  URIs: http://deb.debian.org/debian
Found liquorix:
---
description: Liquorix.net alternate desktop multimedia/gaming kernels
gpg-key-checksum:
  sha256: a1e1ed12d8521f3b91772fff10c1bdaa39b42e030b49634f67dc21c85786747c
gpg-key-file: liquorix.asc
policy: main
source:
  Components: main
  Suites: bullseye
  Types: deb deb-src
  URIs: https://liquorix.net/debian
Found neurodebian_software:

... it's hard to tell wehere the next entry starts, and it's not at "---".


The manpage could mention that invoking "search" without arguments
works. Prior to trying, I was wondering why there was no "list all"
command.


Maybe it should notice earlier that I'm not root:

$ extrepo enable pgdg
gpgv: Signatur vom Fr 20 Dez 2019 09:17:24 CET
gpgv:                mittels RSA-Schlüssel 
7A8502E9FF4765B162A964171283BEE904FB0E04
gpgv: Korrekte Signatur von "Debian external repositories signing key 
(experimental)"


Permission denied at /usr/bin/extrepo line 102.


Does it have to print that gpg message on each invocation?


It should print some success message I think (or don't do any output):

$ sudo extrepo enable pgdg
gpgv: Signatur vom Fr 20 Dez 2019 09:17:24 CET
gpgv:                mittels RSA-Schlüssel 
7A8502E9FF4765B162A964171283BEE904FB0E04
gpgv: Korrekte Signatur von "Debian external repositories signing key 
(experimental)"


$

(Note the extra empty lines.)


Now that it is enabled, I would like a "list" command that shows which
sources.lists entries it knows about.


"sudo extrepo disable pgdg" seemed to be quite slow. Is it accessing
the network for that?


Cheers,
Christoph

Reply via email to