mirror of
https://github.com/peridotbuild/pv2.git
synced 2024-11-27 07:26:31 +00:00
autorelease is not being caught, fix that
This commit is contained in:
parent
eba9710869
commit
caf230eae7
@ -832,14 +832,18 @@ class GitImport(Import):
|
|||||||
if HAS_RPMAUTOSPEC:
|
if HAS_RPMAUTOSPEC:
|
||||||
# Check that the spec file really has %autochangelog
|
# Check that the spec file really has %autochangelog
|
||||||
AUTOCHANGELOG = False
|
AUTOCHANGELOG = False
|
||||||
|
AUTORELEASE = False
|
||||||
with open(source_git_repo_spec, 'r') as spec_file:
|
with open(source_git_repo_spec, 'r') as spec_file:
|
||||||
for line in spec_file:
|
for line in spec_file:
|
||||||
if re.match(r'^%autochangelog', line):
|
if re.match(r'^%autochangelog', line):
|
||||||
print('autochangelog found')
|
print('autochangelog found')
|
||||||
AUTOCHANGELOG = True
|
AUTOCHANGELOG = True
|
||||||
|
if re.match(r'%autorelease', line):
|
||||||
|
print('autorelease found')
|
||||||
|
AUTORELEASE = True
|
||||||
spec_file.close()
|
spec_file.close()
|
||||||
# It was easier to do this then reimplement logic
|
# It was easier to do this then reimplement logic
|
||||||
if AUTOCHANGELOG:
|
if AUTOCHANGELOG or AUTORELEASE:
|
||||||
try:
|
try:
|
||||||
rpmautocl.process_distgit(
|
rpmautocl.process_distgit(
|
||||||
source_git_repo_spec,
|
source_git_repo_spec,
|
||||||
|
Loading…
Reference in New Issue
Block a user