Package: git
Version: 1:1.7.7-1
Severity: serious

I'm trying to install git after purging it:

# aptitude install git
...
Setting up git (1:1.7.7-1) ...
rmdir: cannot remove `/usr/share/doc/git/contrib/hooks': Not a directory

I think this is a problem with this part of postinst:

if dpkg --compare-versions "$2" lt '1:1.7.7-1' &&
   test -d /usr/share/doc/git/contrib/hooks; then
   rmdir /usr/share/doc/git/contrib/hooks &&
..

dpkg --compare-versions "" lt '1:1.7.7-1' is true and
test -d /usr/share/doc/git/contrib/hooks is also true even for symlink.

'man test' says "Except for -h and -L, all FILE-related tests dereference
symbolic links.". So as far as I understand behavior of test -d is
expected.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages git depends on:
ii  git-man          1:1.7.7-1       
ii  libc6            2.13-21         
ii  libcurl3-gnutls  7.21.7-3        
ii  liberror-perl    0.17-1          
ii  libexpat1        2.0.1-7         
ii  perl-modules     5.12.4-6        
ii  zlib1g           1:1.2.3.4.dfsg-3

Versions of packages git recommends:
ii  less                         444-1    
ii  openssh-client [ssh-client]  1:5.9p1-1
ii  patch                        2.6.1-2  
ii  rsync                        3.0.8-1  

Versions of packages git suggests:
pn  git-arch                              <none>
pn  git-cvs                               <none>
pn  git-daemon-run | git-daemon-sysvinit  <none>
pn  git-doc                               <none>
pn  git-el                                <none>
pn  git-email                             <none>
pn  git-gui                               <none>
pn  git-svn                               <none>
pn  gitk                                  <none>
pn  gitweb                                <none>

-- no debconf information



-- 
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