pb_version = fh.read().rstrip()
fh.close()
+ fh = open('debian/control')
+ for line in fh:
+ if line.startswith('Source:'):
+ pkg_name = line.split(':')[-1].lstrip().rstrip()
+ fh.close()
+
if options.distribution in ('unstable', 'experimental'):
daily_date = datetime.datetime.now().strftime('%Y%m%d-%H%M%S')
version = '%s-%s' %(pb_version, daily_date)
os.unlink('debian/changelog')
- fh = open('debian/control')
- for line in fh:
- if line.startswith('Source:'):
- pkg_name = line.split(':')[-1].lstrip().rstrip()
- fh.close()
-
cmd = ['/usr/bin/git', 'log']
git_log = subprocess.Popen(
cmd,
'%s' %(git_log_output)
]
- logger.debug('This is cwd: %s' %(os.getcwd()))
- logger.debug(os.listdir('./'))
logger.debug('Trying to call: %s' %(cmd))
dch = subprocess.Popen(
'This is the output of git-buildpackage: \n%s'
%(ret)
)
+ logger.debug(os.listdir())
#create_dput_cfg()
#dput_package_upload()