Skip to content

Commit 25a93d4

Browse files
left pad version when generating fedora.spec
Change-Id: Iecdb4fc7ca15ad0828127c59e224af04021e3f05 Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 3381dc2 commit 25a93d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
#
3-
# Copyright (C) 2018 Intel Corporation
3+
# Copyright (C) 2018-2019 Intel Corporation
44
#
55
# SPDX-License-Identifier: MIT
66
#
@@ -29,7 +29,7 @@
2929
c = repo.commit(neo_revision)
3030
cd = datetime.datetime.fromtimestamp(c.committed_date)
3131

32-
pkg_version = "%s.%s.%s" %(str(cd.isocalendar()[0])[-2:], cd.isocalendar()[1], sys.argv[2])
32+
pkg_version = "%s.%02d.%s" %(str(cd.isocalendar()[0])[-2:], cd.isocalendar()[1], sys.argv[2])
3333

3434
with open(sys.argv[1], 'r') as f:
3535
for line in f.readlines():

0 commit comments

Comments
 (0)