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:
Lubomír Sedlář 2016-09-29 11:11:41 +02:00
parent 4e90f81fc1
commit ac635a0937
1 changed files with 2 additions and 1 deletions

View File

@ -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)