Prechádzať zdrojové kódy

Rename Dpkg::Cdata into Dpkg::Control

Update all scripts and modules to use the new module names.
Raphaël Hertzog 17 rokov pred
rodič
commit
b9c82a9db2

+ 1 - 1
scripts/Dpkg/Changelog.pm

@@ -41,7 +41,7 @@ use English;
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling qw(:DEFAULT report);
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::Fields;
 use Dpkg::Version qw(compare_versions);
 

+ 4 - 4
scripts/Dpkg/Cdata.pm

@@ -14,7 +14,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
-package Dpkg::Cdata;
+package Dpkg::Control;
 
 use strict;
 use warnings;
@@ -28,18 +28,18 @@ our @EXPORT = qw(parsecdata);
 
 =head1 NAME
 
-Dpkg::Cdata - parse and manipulate a block of RFC822-like fields
+Dpkg::Control - parse and manipulate a block of RFC822-like fields
 
 =head1 DESCRIPTION
 
-The Dpkg::Cdata module exports one function 'parsecdata' that reads a
+The Dpkg::Control module exports one function 'parsecdata' that reads a
 block of data (usually a block following the debian/control format)
 
 =head1 FUNCTIONS
 
 =over 4
 
-=item $obj = Dpkg::Cdata::parsecdata($input, $file, %options)
+=item $obj = Dpkg::Control::parsecdata($input, $file, %options)
 
 $input is a filehandle, $file is the name of the file corresponding to
 $input. %options can contain two parameters: allow_pgp=>1 allows the parser

+ 1 - 1
scripts/Dpkg/Control/Info.pm

@@ -19,7 +19,7 @@ package Dpkg::Control::Info;
 use strict;
 use warnings;
 
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::ErrorHandling;
 use Dpkg::Gettext;
 

+ 1 - 1
scripts/Dpkg/Source/Package.pm

@@ -22,7 +22,7 @@ use warnings;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
 use Dpkg::Fields;
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::Checksums;
 use Dpkg::Version qw(parseversion check_version);
 use Dpkg::Deps qw(@src_dep_fields);

+ 1 - 1
scripts/Dpkg/Vendor.pm

@@ -21,7 +21,7 @@ use warnings;
 
 use Dpkg::ErrorHandling;
 use Dpkg::Gettext;
-use Dpkg::Cdata;
+use Dpkg::Control;
 
 use base qw(Exporter);
 our @EXPORT_OK = qw(get_vendor_info get_current_vendor get_vendor_file

+ 1 - 1
scripts/Makefile.am

@@ -91,11 +91,11 @@ perllibdir = $(PERL_LIBDIR)
 nobase_dist_perllib_DATA = \
 	Dpkg/Arch.pm \
 	Dpkg/BuildOptions.pm \
-	Dpkg/Cdata.pm \
 	Dpkg/Changelog.pm \
 	Dpkg/Changelog/Debian.pm \
 	Dpkg/Checksums.pm \
 	Dpkg/Compression.pm \
+	Dpkg/Control.pm \
 	Dpkg/Control/Info.pm \
 	Dpkg/Deps.pm \
 	Dpkg/ErrorHandling.pm \

+ 1 - 1
scripts/dpkg-genchanges.pl

@@ -14,7 +14,7 @@ use Dpkg::Arch qw(get_host_arch debarch_eq debarch_is);
 use Dpkg::Fields qw(:list capit unknown);
 use Dpkg::Compression;
 use Dpkg::Control::Info;
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::Substvars;
 use Dpkg::Vars;
 use Dpkg::Changelog qw(parse_changelog);

+ 1 - 1
scripts/dpkg-name.pl

@@ -29,7 +29,7 @@ use File::Path;
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::Arch qw(get_host_arch);
 
 textdomain("dpkg-dev");

+ 1 - 1
scripts/dpkg-scansources.pl

@@ -31,7 +31,7 @@ use warnings;
 use Dpkg;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
-use Dpkg::Cdata;
+use Dpkg::Control;
 use Dpkg::Checksums;
 
 textdomain("dpkg-dev");

+ 1 - 1
scripts/po/POTFILES.in

@@ -15,10 +15,10 @@ scripts/dpkg-shlibdeps.pl
 scripts/dpkg-source.pl
 scripts/changelog/debian.pl
 scripts/Dpkg/Arch.pm
-scripts/Dpkg/Cdata.pm
 scripts/Dpkg/Changelog.pm
 scripts/Dpkg/Changelog/Debian.pm
 scripts/Dpkg/Checksums.pm
+scripts/Dpkg/Control.pm
 scripts/Dpkg/Control/Info.pm
 scripts/Dpkg/Deps.pm
 scripts/Dpkg/ErrorHandling.pm