Package: etckeeper
Version: 0.63
Severity: normal

The etckeeper package may be installed without git, as long as another
supported VCS (currently bazaar, darcs, mercurial) is or gets
installed.

However, when git is not installed, etckeeper will not initialise the
repo after installation. Instead one sees the output:

"etckeeper init not ran as git is not installed"

This is because, at present, the postinst script sources the config
file /etc/etckeeper/etckeeper.conf, checks whether $VCS is installed
and only runs init and the initial commit if it is.
At this point, though, right after installation, etckeeper.conf is
still just the default config file from the package, which sets
"VCS=git", no matter what's installed on the system.

The package would have to figure out which VCS to use, which should be
easy if there's only one, and set $VCS accordingly in etckeeper.conf
before using it.
Maybe this could be solved with debconf, but I'm not familiar enough
with that to supply a patch. Might look into it, though.

Perhaps, one could even avoid bothering the user with any questions in
case there's more than one VCS installed, by hardcoding a preference
list. As pointed out in Debian Bug #611882 it is easy enough to
uninit, manually reconfigure and init again.


-- System Information:
Debian Release: 7.5
Architecture: armhf (armv6l)

Kernel: Linux 3.12.20+ (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages etckeeper depends on:
ii  debconf [debconf-2.0]  1.5.49
ii  git                    1:1.7.10.4-1+wheezy1+rpi2
ii  mercurial              2.2.2-3

Versions of packages etckeeper recommends:
ii  cron  3.0pl1-124

Versions of packages etckeeper suggests:
ii  sudo  1.8.5p2-1+nmu1

-- Configuration Files:
/etc/etckeeper/etckeeper.conf changed [not included]

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to