#!/usr/bin/perl use warnings; use strict; use IO::Handle; use IO::File; my $version= '1.2.6'; # This line modified by Makefile my $dpkglibdir= "."; # This line modified by Makefile ($0) = $0 =~ m:.*/(.+):; push(@INC,$dpkglibdir); require 'controllib.pl'; require 'dpkg-gettext.pl'; textdomain("dpkg-dev"); our @pkg_dep_fields; my (@samemaint, @changedmaint); my %packages; my %overridden; my %kmap= (optional => 'suggests', recommended => 'recommends', class => 'priority', package_revision => 'revision', ); my @fieldpri = (qw(Package Source Version Architecture Essential Origin Bugs Maintainer Installed-Size), @pkg_dep_fields, qw(Filename Size MD5sum Section Priority Description)); # This maps the fields into the proper case my %field_case; @field_case{map{lc($_)} @fieldpri} = @fieldpri; use Getopt::Long qw(:config bundling); my %options = (help => sub { &usage; exit 0; }, version => \&version, udeb => 0, arch => undef, multiversion => 0, ); my $result = GetOptions(\%options,'help|h|?','version','udeb|u!','arch|a=s','multiversion|m!'); sub version { printf _g("Debian %s version %s.\n"), $0, $version; exit; } sub usage { printf _g( "Usage: %s [