Package: equivs
Version: 2.0.9
Severity: normal
Tags: patch

For example, if I have a control file with

  Files: src/some_program /bin

equivs installs /bin/src/some_program instead of /bin/some_program.

Apologies if this is intentional behaviour, but it was unexpected, not
to mention quite inconvenient. :)

Here is a patch which uses basename to fix the install path:

--- /usr/bin/equivs-build       2011-09-30 07:22:24.000000000 +0100
+++ /tmp/equivs-build   2012-03-07 13:27:50.315122421 +0000
@@ -67,7 +67,7 @@
 for (split "\n", $control{'Files'} || "") {
     die "Cannot parse Files line: '$_'\n"
         unless m:^\s*(\S+)\s+(\S+)/?\s*$:;
-    $install_files{"$2/$1"} = $1;
+    $install_files{"$2/".basename($1)} = $1;
 }
 my %create_files = ();
 for (@{$control{'File'} || []}) {

Thanks in advance for your consideration.

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

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
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 equivs depends on:
ii  debhelper  9.20120115
ii  dpkg-dev   1.16.1.2
ii  fakeroot   1.18.2-1
ii  make       3.81-8.1
ii  perl       5.14.2-9

equivs recommends no packages.

equivs suggests no packages.

-- no debconf information

-- 
http://rjy.org.uk/



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