chiark / gitweb /
dgit: Break out package_from_d_control (nfc)
[dgit.git] / dgit
diff --git a/dgit b/dgit
index bfc168c253c9423805902428fc7bd43ca9c0e1ec..db12d229e2faecffc675658398f366cc02ae9018 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4597,11 +4597,15 @@ sub branchsuite () {
     }
 }
 
-sub fetchpullargs () {
+sub package_from_d_control () {
     if (!defined $package) {
        my $sourcep = parsecontrol('debian/control','debian/control');
        $package = getfield $sourcep, 'Source';
     }
+}
+
+sub fetchpullargs () {
+    package_from_d_control();
     if (@ARGV==0) {
        $isuite = branchsuite();
        if (!$isuite) {