The following commit has been merged in the master branch:
commit ca39b57488e2b245311892bb38510c72d29f4dd0
Author: Raphaël Hertzog <[email protected]>
Date:   Tue Sep 15 01:26:20 2009 +0200

    Dpkg::Control: define the default output order based on the type

diff --git a/scripts/Dpkg/Control.pm b/scripts/Dpkg/Control.pm
index c4a8852..e27f82b 100644
--- a/scripts/Dpkg/Control.pm
+++ b/scripts/Dpkg/Control.pm
@@ -24,6 +24,7 @@ use Dpkg::ErrorHandling;
 use Dpkg::Fields qw(capit);
 use Dpkg::Control::Types;
 use Dpkg::Control::Hash;
+use Dpkg::Control::Fields;
 
 use base qw(Dpkg::Control::Hash Exporter);
 our @EXPORT = qw(CTRL_UNKNOWN CTRL_INFO_SRC CTRL_INFO_PKG CTRL_APT_SRC
@@ -164,6 +165,7 @@ sub set_options {
         } elsif ($t == CTRL_FILE_STATUS) {
             $$self->{'name'} = _g("entry in dpkg's status file");
         }
+        $self->set_output_order(field_ordered_list($opts{'type'}));
     }
 
     # Options set by the user override default values

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to