Bug#213310: tetex-base: the dvips database should not be in /etc
Atsuhito Kohda <kohda@pm.tokushima-u.ac.jp> schrieb:
> From: frank@kuesterei.ch (Frank Küster)
> Subject: Bug#213310: tetex-base: the dvips database should not be in /etc
> Date: Fri, 05 Dec 2003 21:43:04 +0100
>
>> > Well the only thing to do is to check the postin-script, if it calls
>> > updmap. The job is not hard but time-consuming....
>>
>> An other idea, probably cheaper, would be to get read access to a
>> machine with a full Debian mirror. Then one could filter the postinst
>> part out of the diff.gz and grep for updmap there. Unfortunately I
>> neither have access, nor do I know hot ot cut out the postinst part. But
>> maybe it's as fast (and gets some less false negatives) to just grep
>> over the whole diff.gz.
>
> Not so complete but simple way could be to check only
> postinst of packages listed in the following command;
#!/bin/bash
# (setq skeleton-pair t)
packagelist=tetex-bin.rdepends
installeddir=/var/lib/dpkg/info
hitdir=updmap-postinsts
for package in `cat $packagelist`; do
installed=false
dlocate -l $package | grep ^ii && installed=true
if [ "$installed" = "true" ]; then
for file in $installeddir/$package*; do
grep -q updmap $file && cp $file $hitdir/
done
else
echo fetching sources for $package
apt-get source $package >/dev/null 2>&1
dirname=`ls -d $package-*`
debianfiles=`ls $dirname/debian/*`
for file in $debianfiles; do
grep -q updmap $file && cp $file ${hitdir}/${package}.${file}
done
rm -rf ${package}*
fi
done
*************************
is running here on my swiss-government-payed-ethernet-connected
computer...
Bye, Frank
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: