On Thu, Jun 04, 2009 at 12:03:25PM +0200, Peter Jordan wrote:
> is it possible to pass the package name and package version to a script
> with DPkg::Pre-Invoke? If not, is there any other way?
Its really unclear what it is you want to do, is this a bash script
your talking about? A perl script? A Python script?
How are you going to get information from a package if you don't know
the name of the package?
If you know the name, then that answeres your first question, and the second
you can get by dpkg -s pkgname and some grep and awk (or a one line
perl script with some fancy RE)