diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-01 12:18:22 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-01 12:22:42 +0100 |
commit | 96a93d8f6efbf26925d3644f10520e9320066b16 (patch) | |
tree | 44278381c1979fa04ab591a3b56cca06a47acabc | |
parent | ca4b7ad26599791024a2b7212cdf0d0f77feb344 (diff) |
dgit: Break out package_from_d_control (nfc)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |