From 2d5040e26f7bf6b480e45f368794375495e2582c Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 3 Aug 2012 14:13:21 +0200 Subject: [PATCH] Fix for running in minimal chroot --- auto_debuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_debuild.py b/auto_debuild.py index 86f5805..bb4387e 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -91,8 +91,8 @@ def writeDependency(f, name, list): 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'] -- 2.30.2