def _makeRPMs(tapfile=None, maintainer=None, protocol=None, description=None, longDescription=None, setVersion=None, rpmfile=None, type_=None):
 args = []
 if (not tapfile):
  tapfile = 'dummy-tap-file'
  handle = open(tapfile, 'w')
  handle.write('# Dummy TAP file\n')
  handle.close()
 args.extend(['--quiet', '--tapfile', tapfile])
 if maintainer:
  args.extend(['--maintainer', maintainer])
 if protocol:
  args.extend(['--protocol', protocol])
 if description:
  args.extend(['--description', description])
 if longDescription:
  args.extend(['--long_description', longDescription])
 if setVersion:
  args.extend(['--set-version', setVersion])
 if rpmfile:
  args.extend(['--rpmfile', rpmfile])
 if type_:
  args.extend(['--type', type_])
 return tap2rpm.run(args)

def _makeRPMs ( tapfile = None , maintainer = None , protocol = None , description = None , longDescription = None , setVersion = None , rpmfile = None , type_ = None ) : args = [ ] if ( not tapfile ) : tapfile = 'dummy-tap-file' handle = open ( tapfile , 'w' ) handle . write ( '# Dummy TAP file\n' ) handle . close ( ) args . extend ( [ '--quiet' , '--tapfile' , tapfile ] ) if maintainer : args . extend ( [ '--maintainer' , maintainer ] ) if protocol : args . extend ( [ '--protocol' , protocol ] ) if description : args . extend ( [ '--description' , description ] ) if longDescription : args . extend ( [ '--long_description' , longDescription ] ) if setVersion : args . extend ( [ '--set-version' , setVersion ] ) if rpmfile : args . extend ( [ '--rpmfile' , rpmfile ] ) if type_ : args . extend ( [ '--type' , type_ ] ) return tap2rpm . run ( args )
helper function to invoke tap2rpm with the given parameters .