Commit b7cc535d authored by Craig Small's avatar Craig Small

Python package support

parent 9450029e
......@@ -22,6 +22,7 @@ dh-make (2.201602) UNRELEASED; urgency=medium
* Update watch example to version 4
* Dropped multi package class, use --docs to get docs package
* prompts to change info by user Closes: #298248
* Added support for python packages Closes: #533117
-- Craig Small <> Mon, 04 Jan 2016 19:27:21 +1100
......@@ -41,7 +41,6 @@ def process_file(args, subs_func, infile, outfile):
Process a single file infile is the template, outfile is
the destination. rx is a compilied regular expresssion
outfile2 = str(outfile).rsplit('.ex', 1)[0]
if args.overlay is None and args.addmissing and (
os.path.isfile(outfile) or os.path.isfile(outfile2)):
......@@ -50,8 +49,6 @@ def process_file(args, subs_func, infile, outfile):
with open(infile, 'r') as inf, open(outfile, 'w') as outf:
for line in inf:
print('line is:>>{}<<'.format(line))
print('olin is:>>{}<<'.format(subs_func(line)))
except OSError as e:
print('Unable to open file {} for reading: {}'.
......@@ -568,7 +565,7 @@ def choose_package_class(old_package_class):
return old_package_class
if choice in valid:
return valid[choice]
print('Please respond with one of the following: s,i,l')
print('Please respond with one of the following: s,i,l,p')
def parse_args():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment