)
ret = parse_changelog.wait()
- stdout_msg = parse_changelog.stdout.read()
+ #stdout_msg = parse_changelog.stdout.read()
- logger.info(stdout_msg)
+ #logger.info(stdout_msg)
# i hate this: a version needs to include a . now...
- #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.']
- cmd = [ "awk '/^Version: / {print $2}'"]
+ cmd = ['grep-dctrl', '-n', '-s', 'Version', '']
grep_dctrl = subprocess.Popen(
cmd,
shell=True,
close_fds=True,
- stdin=parse_changelog.stdout,
+ stdin=parse_changelog.stdout.read(),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=os.getcwd()