]> git.donarmstrong.com Git - debbugs.git/commitdiff
allow fields to be exported
authorDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 04:40:36 +0000 (20:40 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 19 Feb 2009 04:40:36 +0000 (20:40 -0800)
Debbugs/Status.pm

index 3e211b677ed7238f28df999c3532a0ec79be6c98..be296fd428ba86b5317e0e16dcc93b4f6c9ac621 100644 (file)
@@ -64,9 +64,10 @@ BEGIN{
                                  qw(removefoundversions removefixedversions)
                                 ],
                     hook     => [qw(bughook bughook_archive)],
+                    fields   => [qw(%fields)],
                    );
      @EXPORT_OK = ();
-     Exporter::export_ok_tags(qw(status read write versions hook));
+     Exporter::export_ok_tags(qw(status read write versions hook fields));
      $EXPORT_TAGS{all} = [@EXPORT_OK];
 }
 
@@ -81,8 +82,9 @@ location. Valid locations are those understood by L</getbugcomponent>
 
 =cut
 
-
-my %fields = (originator     => 'submitter',
+# these probably shouldn't be imported by most people, but
+# Debbugs::Control needs them, so they're now exportable
+our %fields = (originator     => 'submitter',
               date           => 'date',
               subject        => 'subject',
               msgid          => 'message-id',