Package: apt-file
Version: 2.2.1
Severity: wishlist
Tags: patch

Hi,

I would like to propose the following script for inclusion in
apt-file:

,----
| #! /bin/sh
| 
| deb=$1
| 
| files=$(dpkg-deb --contents *deb | grep -v /$ | awk '{print $6}' | sort | cut 
-c2-)
| 
| for i in $files ; do
|     apt-file find $i | grep [[:space:]]$i$
| done
`----

This can be useful for people preparing packages, to check whether a
generated *.deb should declare a conflict against other packages
already in Debian because of file conflicts.  This implementation is
very crude and rather slow, and a rewrite of that feature inside
apt-file itself would avoid forking for each file to be tested, but
it's a start.

Roland.
-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-file depends on:
ii  curl                          7.18.2-8   Get a file from an HTTP, HTTPS or 
ii  libapt-pkg-perl               0.1.22+b1  Perl interface to libapt-pkg
ii  libconfig-file-perl           1.50-1     Parses simple configuration files
ii  liblist-moreutils-perl        0.22-1+b1  Addition list functions not found 
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 

Versions of packages apt-file recommends:
ii  menu                          2.1.41     generates programs menu for all me

Versions of packages apt-file suggests:
ii  openssh-client                1:5.1p1-5  secure shell client, an rlogin/rsh
ii  sudo                          1.6.9p17-2 Provide limited super user privile

-- no debconf information

-- 
Roland Mas

 ar c   t  e l  l  iè    u   ai  i    a   mi    . 
  -- Signatures à collectionner, série n°1, partie 2/3.



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

Reply via email to