]] George Danchev
| I fixed some bugs with my previous patch, and now the new one is found at [1].
| Unfortunately, I also found that I erroneously believed that AptPkg is only
| loaded run-time, which is not true and I will need to find ways to tackle
that
| as well. For the time being, libapt-pkg-perl is need, but the apt cache is
| only loaded when the -f option is used, and not with -s. You can see that is
| you comment $_config->{quiet} = 2;
Use something like
eval {
require AptPkg::Config;
import AptPkg::Config '$_config';
require AptPkg::System;
import AptPkg::System '$_system';
require AptPkg::Cache;
require AptPkg::Version;
};
if ($@) {
die "libapt-pkg-perl not available, can't use -f";
}
to do the check at run-time.
--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]