added rpmlint to rpm dist step

This commit is contained in:
Nick Bolton 2014-04-10 09:04:31 +00:00
parent 66a59428ea
commit 925e3a17aa
3 changed files with 12 additions and 7 deletions

View file

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