def createDebianFiles(config):
sourceName = config['sourceName']
binaryName = config.get('binaryName', sourceName+'-local')
def createDebianFiles(config):
sourceName = config['sourceName']
binaryName = config.get('binaryName', sourceName+'-local')
- name = config.get('name', os.getlogin())
- email = config.get('email', os.getlogin()+'@'+os.uname()[1]) # user@hostname
+ name = config.get('name', os.getenv('USER')) # os.getlogin() fails in minimal chroots
+ email = config.get('email', os.getenv('USER')+'@'+os.uname()[1]) # user@hostname
debDir = os.path.expanduser(config['debDir'])
buildSystem = config['buildSystem']
version = config['version']
debDir = os.path.expanduser(config['debDir'])
buildSystem = config['buildSystem']
version = config['version']