From: Ian Jackson Date: Sun, 17 Jul 2016 14:13:01 +0000 (+0100) Subject: Tag change: Provide debiantags in Dgit.pm X-Git-Tag: archive/debian/2.0~245 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=509af629e19c6c9d973d9fc8cd1739bd8de2d9d9 Tag change: Provide debiantags in Dgit.pm No callers yet. Signed-off-by: Ian Jackson --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 863d1ad4..bfa76cc7 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -19,7 +19,8 @@ BEGIN { $VERSION = 1.00; @ISA = qw(Exporter); @EXPORT = qw(setup_sigwarn - debiantag_old debiantag_new server_branch server_ref + debiantags debiantag_old debiantag_new + server_branch server_ref stat_exists link_ltarget hashfile fail ensuredir executable_on_path @@ -137,6 +138,11 @@ sub debiantag_new ($$) { return "archive/$distro/$v"; } +sub debiantags ($$) { + my ($version,$distro) = @_; + map { $_->($version, $distro) } (\&debiantag_new, \&debiantag_old); +} + sub server_branch ($) { return "$branchprefix/$_[0]"; } sub server_ref ($) { return "refs/".server_branch($_[0]); }