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

Re: Checking for old tex packages .....



Hi,
>>"Carey" == Carey Evans <c.evans@clear.net.nz> writes:

Carey> Christian Schwarz <schwarz@monet.m.isar.de> writes: [snip]

Carey> Wouldn't it be easier, faster and more compatible with dpkg to
Carey> do something like:
 [...] snipped

	No, this won't work as expected, since dpkg truncates things
 in column 2 to fit. Try something like the snippet below my signature
 (untested, but should work)

Carey> Am I missing something?

	Only one of the installed package names is correct below.

__> dpkg -l kernel*
Desired=Unknown/Install/Remove/Purge
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name            Version        Description
+++-===============-==============-============================================
ii  kernel-image-2. c501           Linux kernel binary image.
ii  kernel-image-2. c501           Linux kernel binary image.
ii  kernel-package  3.38           Debian Linux kernel package build scripts.
un  kernel-source   <none>         (no description available)
 [...]

	manoj
-- 
 "I sat through it.  Why shouldn't you?" David Letterman, it a spot
 promoting one of his shows
Manoj Srivastava               <url:mailto:srivasta@acm.org>
Mobile, Alabama USA            <url:http://www.datasync.com/%7Esrivasta/>

------------------------cut here---------------------------------------
#!/bin/sh

OLDPACKAGES="amsfonts amslatex amstex babel bibtex dviljk dvipsk kpathsea kpaths ea-dev latex latex2e-doc ltxgraph ltxmisc ltxtool makeindex mfbasfnt mfbin mfdcf nt mfnfss ntgclass oldgerman pandora ps2pk psnfss texbin texi2html texinfo texli b texpsfnt textfm xdvik tetex tetexlib tetexdoc"

echo -en "\n checking for old tex packages "

set X "$OLDPACKAGES"
shift
for pkg
do
   if `dpkg -l $pkg 2>/dev/null | egrep ^ii `
   then
       PACKAGES="$PACKAGES $pkg"
   fi
done


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: