Remove duplicated version from pungi script
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ář <lsedlar@redhat.com>
This commit is contained in:
parent
4e90f81fc1
commit
ac635a0937
@ -12,6 +12,7 @@
|
||||
# along with this program; if not, see <https://gnu.org/licenses/>.
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user