Your message dated Thu, 20 Feb 2014 21:38:16 +0100
with message-id <[email protected]>
and subject line Re: Bug#739634: "dpkg-maintscript-helper supports" always 
returns 1
has caused the Debian Bug report #739634,
regarding "dpkg-maintscript-helper supports" always returns 1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
739634: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739634
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.17.6
Severity: normal

Dear Maintainer,

I need to use dir_to_symlink and see in 'man dpkg-maintscript-helper':

"[...] we can call the program only if we know that the required
command is supported by the currently installed dpkg:
     if dpkg-maintscript-helper supports command; then
         dpkg-maintscript-helper command ...
     fi
"

On my computer dpkg-maintscript-helper supports always returns 1:

snoopy:~$ dpkg-maintscript-helper supports dir_to_symlink; echo $?
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE 
missing
1
snoopy:~$ dpkg-maintscript-helper supports fasdfa; echo $?
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE 
missing
1
snoopy:~$ dpkg-maintscript-helper supports xyz; echo $?
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE 
missing
1

Kind regards,
Eugen


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

Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores)
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 dpkg depends on:
ii  libbz2-1.0   1.0.6-5
ii  libc6        2.17-97
ii  liblzma5     5.1.1alpha+20120614-2
ii  libselinux1  2.2.2-1
ii  tar          1.27.1-1
ii  zlib1g       1:1.2.8.dfsg-1

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.9.15.2

-- no debconf information

--- End Message ---
--- Begin Message ---
Hi!

On Thu, 2014-02-20 at 18:23:59 +0100, Eugen Dedu wrote:
> Package: dpkg
> Version: 1.17.6
> Severity: normal

> I need to use dir_to_symlink and see in 'man dpkg-maintscript-helper':
> 
> "[...] we can call the program only if we know that the required
> command is supported by the currently installed dpkg:
>      if dpkg-maintscript-helper supports command; then
>          dpkg-maintscript-helper command ...
>      fi
> "
> 
> On my computer dpkg-maintscript-helper supports always returns 1:
> 
> snoopy:~$ dpkg-maintscript-helper supports dir_to_symlink; echo $?
> dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
> missing
> dpkg-maintscript-helper: warning: environment variable 
> DPKG_MAINTSCRIPT_PACKAGE missing
> 1
> snoopy:~$ dpkg-maintscript-helper supports fasdfa; echo $?
> dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
> missing
> dpkg-maintscript-helper: warning: environment variable 
> DPKG_MAINTSCRIPT_PACKAGE missing
> 1
> snoopy:~$ dpkg-maintscript-helper supports xyz; echo $?
> dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME 
> missing
> dpkg-maintscript-helper: warning: environment variable 
> DPKG_MAINTSCRIPT_PACKAGE missing
> 1

Tha's because the mentioned variables are not defined in the
environment, as dpkg does. Check this instead:

  $ env DPKG_MAINTSCRIPT_NAME=postinst DPKG_MAINTSCRIPT_PACKAGE=pkg \
    dpkg-maintscript-helper supports dir_to_symlink
  $ echo $?
  0

I'm thus closing this bug report.

Thanks,
Guillem

--- End Message ---

Reply via email to