mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-17 08:27:39 +02:00
added rpmlint to rpm dist step
This commit is contained in:
parent
66a59428ea
commit
925e3a17aa
3 changed files with 12 additions and 7 deletions
|
@ -1054,12 +1054,18 @@ class InternalCommands:
|
|||
try:
|
||||
self.try_chdir(rpmDir)
|
||||
cmd = 'rpmbuild -bb --define "_topdir `pwd`" synergy.spec'
|
||||
print "RPM command: " + cmd
|
||||
print "Command: " + cmd
|
||||
err = os.system(cmd)
|
||||
if err != 0:
|
||||
raise Exception('Package failed: ' + str(err))
|
||||
raise Exception('rpmbuild failed: ' + str(err))
|
||||
|
||||
self.unixMove('RPMS/*/*.rpm', target)
|
||||
|
||||
cmd = 'rpmlint ' + target
|
||||
print "Command: " + cmd
|
||||
err = os.system(cmd)
|
||||
if err != 0:
|
||||
raise Exception('rpmlint failed: ' + str(err))
|
||||
finally:
|
||||
self.restore_chdir()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue