[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1029398: ben: "tracker --archs" is not honoured



Dear Adrian,

Le 22/01/2023 à 12:33, Adrian Bunk a écrit :
$ ben download --archs alpha --preferred-compression-format xz --mirror-binaries http://ftp.de.debian.org/debian-ports
Downloading /tmp/Sources...
Downloading /tmp/Packages_alpha...
$ ben tracker --archs alpha -cd tracker
Parsing /tmp/Sources...
Parsing /tmp/Packages_amd64...
Parsing /tmp/Packages_arm64...
Parsing /tmp/Packages_armel...
Parsing /tmp/Packages_armhf...
Parsing /tmp/Packages_i386...
Parsing /tmp/Packages_mips64el...
Parsing /tmp/Packages_mipsel...
Parsing /tmp/Packages_s390x...
Parsing /tmp/Packages_ppc64el..

"ben tracker" indeed seems to ignore its "--archs" option... and probably most of the options common to all ben frontends! Actually, it takes its configuration from the so-called "global" configuration file. Did you specify one (I see you've specified "-cd tracker", does it refer to something you wrote yourself)? I'm afraid the default one is the Realase Team's one [1], which doesn't seem useful elsewhere...

[1] /usr/share/doc/ben/examples/tracker/global.conf

By writing a custom global.conf (see comments in [1]), I can make "ben tracker" work with debian-ports and only alpha...

I see two approches to solving this bug:
- make the command-line options override the configuration specified in global.conf
- reject command-line options when they are read in global.conf

What do you think?

In all cases, you should be able to do what you want by providing a custom global.conf.

Sorry for being hesitant, I am not familiar with this part of the codebase...


Cheers,

--
Stéphane


Reply to: