Your message dated Sat, 30 May 2009 11:48:51 +0000
with message-id <[email protected]>
and subject line Bug#49922: fixed in dlocate 1.0
has caused the Debian Bug report #49922,
regarding Tweaking dlocate to accept some more wildcards [PATCH]
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.)


-- 
49922: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=49922
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dlocate
Version: 0.5
Severity: wishlist

I think it might not be too difficult to get dlocate to support shell
style wildcards in package names, and to better support them in -S
search patterns.  Attached is a patch with an example -L, and a
suggested -S.  If the idea in -L is good I'll do it for the other
options if you like.

The pattern I used in the locate for -S depends on ": " not being in a
filename, which should always be true.  The variation for patterns
with a leading / is based on what I think dpkg -S does, and in any
case it's fairly sensible to think "/bin/foo" is a full path and
should be matched exactly, ie. /usr/bin/foo or /bin/foo.real wouldn't
be matched.

I compared -S output with dpkg for a few patterns and got the same
results, apart from sort order, diversions, and the format for
directories that are in multiple packages.

An idiosyncracy of dpkg -S (in slink at least) is that a pattern like
"[xy]font" or "?fonts" doesn't work because it starts with a
metacharacter, you have to give "*[xy]font*" or "*?fonts*".  But
dlocate -S will work on plain "[xy]font" and "?fonts".

--- dlocate.old Thu Nov 11 17:42:45 1999
+++ dlocate     Thu Nov 11 21:52:31 1999
@@ -47,7 +47,7 @@
                ;;
 esac
 
-PKG=$1
+PKG="$1"
 [ -z "$1" ] && PKG="$OPTION"
 
 while [ -n "$PKG" ] ; do
@@ -64,14 +64,19 @@
                grep "$1" $DPKGLIST
                ;;
        "-L")
-               if [ -e $DPKG_INFO/$PKG.list ] ; then 
-                       cat $DPKG_INFO/$PKG.list
-               else
-                       echo Package \"$PKG\" not installed.
-               fi
+               for i in $DPKG_INFO/$PKG.list ; do
+                       if [ -e "$i" ] ; then 
+                               cat $DPKG_INFO/$PKG.list
+                       else
+                               echo Package \"$PKG\" not installed.
+                       fi
+               done
                ;;
        "-S")
-               $LOCATE -d $DLOCATEDB $PKG | grep ":.*$PKG.*"
+               case "$PKG" in
+               /*) $LOCATE -d $DLOCATEDB "*: $PKG"   ;;
+               *)  $LOCATE -d $DLOCATEDB "*: *$PKG*" ;;
+               esac
                ;;
        "-s")
                if [ -e $DPKG_INFO/$PKG.list ] ; then 
@@ -139,7 +144,7 @@
 esac
 
 shift
-PKG=$1 
+PKG="$1"
 done
 
 

--- End Message ---
--- Begin Message ---
Source: dlocate
Source-Version: 1.0

We believe that the bug you reported is fixed in the latest version of
dlocate, which is due to be installed in the Debian FTP archive:

dlocate_1.0.dsc
  to pool/main/d/dlocate/dlocate_1.0.dsc
dlocate_1.0.tar.gz
  to pool/main/d/dlocate/dlocate_1.0.tar.gz
dlocate_1.0_all.deb
  to pool/main/d/dlocate/dlocate_1.0_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Craig Sanders <[email protected]> (supplier of updated dlocate package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 30 May 2009 16:53:51 +1000
Source: dlocate
Binary: dlocate
Architecture: source all
Version: 1.0
Distribution: unstable
Urgency: low
Maintainer: Craig Sanders <[email protected]>
Changed-By: Craig Sanders <[email protected]>
Description: 
 dlocate    - fast alternative to dpkg -L and dpkg -S
Closes: 49922 466662 494651 494673 501870 505997 512446 513470 518309 523501
Changes: 
 dlocate (1.0) unstable; urgency=low
 .
   * no longer use frcode and locate, see discussion in 494673.  removed
     dependency on locate package. (Closes: #505997, #494651, #494673)
   * added support for several GNU grep options, -E, -F, -G, -P, and -w
   * the extra grep options obsolete the request for shell glob patterns 
(Closes: #49922)
   * checked for empty $PKGS (Closes: #523501)
   * fixed '-man' option, so that it doesn't break on man directories with 
locales
   * tired of people filing the same bug because they misunderstand the purpose 
of '-man'.  added 'sort -u'.  (Closes: #501870)
   * updated and fixed dlocate.1 man page (Closes: #518309)
   * corrected 'dlocate -l' example in man page (Closes: #466662)
   * moved man pages for dpkg-hold, dpkg-unhold, dpkg-purge, dpkg-remove to 
section 8 (Closes: #512446)
   * added --verbose option to aid in debugging dlocate
   * fixed bug that broke support for multiple packages in most commands
   * fixed '-s' command so that it only calls grep-dctrl once if there are 
multiple package names
   * applied following 6 lintian fixes from era eriksson: (Closes: #513470)
   * debian/control: revert dependency on awk; as per Lintian error,
     it is in practice essential, and should not be declared
   * debian/copyright: add copyright year; disambiguate license as GPL v2
     (fix lintian warning)
   * debian/rules: move binary-arch commands to binary-indep; do not ignore
     errors from "make clean" (fix lintian warnings)
   * debian/changelog: fix typo in 0.96.1 s/dancy/dency/ (fix lintian warning)
   * debian/postinst: don't use explicit path for /usr/sbin (fix lintian 
warning)
   * debian/postrm: add -e flag (fix lintian warning)
Checksums-Sha1: 
 305ea6a207a8073b1090e12eea51f6667b38c56b 683 dlocate_1.0.dsc
 4cb84953028e25b0fe2f7a9be38943a8ecb1f4e8 36544 dlocate_1.0.tar.gz
 e0f59394157ce1590e03ba0fb6d095a47e0c4eab 20172 dlocate_1.0_all.deb
Checksums-Sha256: 
 d317e27b1372891684495372399cc4144c78e8803c7435e1008aeaf924ed050c 683 
dlocate_1.0.dsc
 e0ecac3b651fd9dcebaf900aab88d23e94713bbce526f87c7890febd70da7375 36544 
dlocate_1.0.tar.gz
 d8e33720d26e8b52d4a7f490c7a13e10dcebe3c8f56bc56fd11c1244b28093c7 20172 
dlocate_1.0_all.deb
Files: 
 bddbc804eb0748fd92490c0a3f12c2f5 683 utils optional dlocate_1.0.dsc
 ffe6f95a7306256cac513f3e5b1793ef 36544 utils optional dlocate_1.0.tar.gz
 92ffd6360871a713a741b612d6ad16dc 20172 utils optional dlocate_1.0_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkohBB4ACgkQ7DJoEM1WJvDfJwCffy6J5k89TUGKpWqJkQcSkvwQ
EcgAnj8SzwgpykWiT0auEkEAN2BYFgZr
=G71/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to