deleteDebianFolder()
files = createDebianFiles(config)
# check if a file is overwritten
- for file in files:
- if os.path.exists(file):
- if input("Do you want to overwrite %s (y/N)? " % file).lower() != "y":
- sys.exit(1)
+ overwritten_files = list(filter(lambda file: os.path.exists(file), files))
+ if overwritten_files:
+ if input("Do you want to overwrite {} (y/N)? ".format(', '.join(overwritten_files))).lower() != "y":
+ sys.exit(1)
# run compilation
buildDebianPackage(config)
# install files