From a3cf4756548fc7be12d778b6cccb31787a5acb33 Mon Sep 17 00:00:00 2001 From: Andreas Barth Date: Tue, 2 Mar 2010 17:45:17 +0000 Subject: [PATCH] format: Add distribution and time of state change as options --- bin/wanna-build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/wanna-build b/bin/wanna-build index d5813c0..63c94ba 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -1907,9 +1907,11 @@ c section (e.g. libs or utils) P previous state E in case of Dep-Wait the packages being waited on, in case of Needs-Build the number in the queue D in case of BD-Uninstallable the reason for the uninstallability +d distribution +t time of state change -%{Text}? print text in case ? is not empty, don't print ? -%{!Text}? print text in case ? is empty, don't print ? +%{Text}? print Text in case ? is not empty; ? is never printed +%{!Text}? print Text in case ? is empty; ? is never printed Text could contain further %. To start with !, use %! =cut @@ -1938,6 +1940,8 @@ Text could contain further %. To start with !, use %! return $pkg->{'package'}."#".$arch."-bd-problem\n". join("\\0a",split("\n",$pkg->{'bd_problem'}))."\\0a\n"; }, $pkg, $var), 'B' => make_fmt( sub { return $pkg->{'binary_nmu_version'} if defined $pkg->{'binary_nmu_version'}; }, $pkg, $var), + 'd' => make_fmt( $distribution, $pkg, $var), + 't' => make_fmt( $pkg->{'state_change'}, $pkg, $var), )); } -- 2.39.2