Skip to content

Commit

Permalink
add new line when specs are expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Oct 18, 2021
1 parent afd50d0 commit e322e89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmsBuild
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def fixVersionLine(specLines, version):
for line in specLines:
match = findRpmRe.match(line)
if not match: nLines.append(line)
else: nLines.append(match.group(1)+" "+version+"\n")
else: nLines.append(match.group(1)+" "+version)
return nLines

def parseRPMLine(specLines, opts):
Expand Down Expand Up @@ -2342,6 +2342,8 @@ class Package(object):
subpackages[smatch.group(1)] = smatch.group(3)
else:
self.spec.append(line)
if not line.endswith('\n'):
self.spec.append('\n')
try:
for importName in imports:
importFilename = cmsdist_file(importName, '.file', self.options, self.name)
Expand Down

0 comments on commit e322e89

Please sign in to comment.