3
# Copyright (c) 2005 Kenshi Muto <kmuto@debian.org> All rights reserved.
4
# This copyrighted material is made available to anyone wishing to use, modify,
5
# copy, or redistribute it subject to the terms and conditions of the
6
# GNU General Public License version 2.
8
# You should have received a copy of the GNU General Public License
9
# along with this program; if not, write to the Free Software
10
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
13
exit(0) if (@ARGV < 1);
15
eval "use AptPkg::Cache";
17
print STDERR "Warning: dependency check won't work because libapt-pkg-perl isn't installed.\n";
21
my($cache) = AptPkg::Cache->new;
25
my($p) = $cache->{$package};
27
return 1 if ($p->{CurrentVer});
36
$packages =~ s/[[:space:]]+//g;
37
my(@pa) = split(/,/, $packages);
39
my(@pas) = split(/\|/, $_);
42
if (isInstalled($_)) {
47
$missing .= $_ . ", " unless ($flag);
49
chop($missing); chop($missing);
53
print &parse($ARGV[0]);