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

Bug#746046: ben: support default option values by ~/.benrc



Package: ben
Version: 0.6.7+b1
Severity: wishlist

ben is very useful as a dependency check tool from user command line.

But there seems to be no default option value setting mechanism which
can be found easily.

 * --mirror     Mirror to use
 * --mirror-binaries    Mirror to use for binaries
 * --mirror-sources     Mirror to use for sources
 * --areas      Areas to consider
 * --archs      Architectures to consider
 * --suite      Suite
 * --cache-dir  Path to cache dir
 * --config|-c  Config file

I wonder if ben read files such as ~/.benrc (if exist) or benrc in
current directory which define default values for above.  (Format should
be like /usr/share/doc/ben/examples/download/unstable.ben )

Then I do not need to do

$ ben download  -c ~/.benrc
$ ben query  -c ~/.benrc '.build-depends ~ /lib.*ocaml-dev/'

But, I can simply do

$ ben download
$ ben query  '.build-depends ~ /lib.*ocaml-dev/'

It would be nice this ~/.benrc can set $BEN_CACHE_DIR

Osamu

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

Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ben depends on:
ii  bzip2                                   1.0.6-5
ii  curl                                    7.36.0-1+b1
ii  libben-ocaml [libben-ocaml-di478]       0.6.7+b1
ii  libc6                                   2.18-4
ii  libjs-jquery                            1.7.2+dfsg-3
ii  libpcre3                                1:8.31-5
ii  libpq5                                  9.3.4-1
ii  libtyxml-ocaml [libtyxml-ocaml-caro0]   2.2.0-4
ii  ocaml-base-nox [ocaml-base-nox-4.01.0]  4.01.0-3

Versions of packages ben recommends:
pn  dose-debcheck  <none>

ben suggests no packages.

-- no debconf information


Reply to: