[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#532771: pkglab: version specification needs single quote for versions



Package: pkglab
Version: 1.4.1-1
Severity: normal

Hi,
I was browsing pkglab documentation /usr/share/doc/pkglab/pkglab.html
though the version specification example doesn't seem to work:

> select([. kde (>= 5.2) .]) 
Exception: Interpreter.Sorry("Can't find unit \"5.2\"")
>

while with single quote it does

> select([. kde (>= '5.2) .])
{ }
> 

am I missing something obvious or the syntax has changed? (the same
error is reported also in #help:

  [.unit(operator version).]    Version specification (e.g. [.kde (>= 5.2).])
                (version part is optional)

also note that without version specification trailing space is
compulsory though the usage seems to suggest differently:

> [.cdbs.]  
Exception: Interpreter.Parse_error(7, 8, "Syntax error")
> [.cdbs .]
[. cdbs .]
> [. cdbs.]
Exception: Interpreter.Parse_error(8, 9, "Syntax error")
> 

thanks,
filippo

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

Kernel: Linux 2.6.29.3 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pkglab depends on:
ii  libbz2-1.0             1.0.5-2           high-quality block-sorting file co
ii  libc6                  2.9-13            GNU C Library: Shared libraries
ii  libgdbm3               1.8.3-4           GNU dbm database routines (runtime
ii  libpcre3               7.8-2             Perl 5 Compatible Regular Expressi
ii  libpopt0               1.14-4            lib for parsing cmdline parameters
ii  librpm4.4              4.4.2.3-3         RPM shared library
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

pkglab recommends no packages.

Versions of packages pkglab suggests:
ii  ceve                          1.3-1      utility to parse package dependenc

-- no debconf information



Reply to: