Package: dpkg
Version: 1.17.18
Severity: normal

According to the dpkg manpage:

--verify-format format-name
              Sets the output format for the --verify command.

              The only currently supported output format is rpm, which consists
              of a line for every path that failed any check.

However, dpkg accepts (and ignores) *any* value for --verify-format,
*except* for rpm, for which it returns the following error:

dpkg: error: unknown verify output format 'rpm'

>From src/main.c:

static void
set_verify_format(const struct cmdinfo *cip, const char *value)
{
  if (!verify_set_output(value))
    badusage(_("unknown verify output format '%s'"), value);
}

>From src/verify.c:

int
verify_set_output(const char *name)
{
        if (strcmp(name, "rpm") == 0)
                verify_output = verify_output_rpm;
        else
                return 1;

        return 0;
}

So, set_verify_format expects a false value for failure and true for
success, while verify_set_output returns 1 for failure and 0 for
success.

- Josh Triplett

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

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.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-7
ii  libc6        2.19-11
ii  liblzma5     5.1.1alpha+20120614-2
ii  libselinux1  2.3-2
ii  tar          1.27.1-2
ii  zlib1g       1:1.2.8.dfsg-2

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  1.0.9.3

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to