From ac635a093717b2e5fb9888df78c556b077b606ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 29 Sep 2016 11:11:41 +0200 Subject: [PATCH] Remove duplicated version from pungi script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can get the version using same logic as we do for pungi-koji. This means one less place to bump the version during release. Fixes: https://pagure.io/pungi/issue/406 Signed-off-by: Lubomír Sedlář --- bin/pungi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/pungi b/bin/pungi index 4fccad80..255c63d1 100755 --- a/bin/pungi +++ b/bin/pungi @@ -12,6 +12,7 @@ # along with this program; if not, see . import os +from pungi import get_full_version import pungi.gather import pungi.config import pungi.ks @@ -203,7 +204,7 @@ if __name__ == '__main__': today = time.strftime('%Y%m%d', time.localtime()) def get_arguments(config): - parser = OptionParser("%prog [--help] [options]", version="%prog 4.1.9") + parser = OptionParser("%prog [--help] [options]", version="%%prog %s" % get_full_version()) def set_config(option, opt_str, value, parser, config): config.set('pungi', option.dest, value)