minstall: Error out when trying to copy file to dir
Not sure why this wasn't already an error. It's a bad situation to be
in, and we should not ignore it.
@@ -321,6 +321,7 @@ class Installer:
abs_dst = os.path.join(dst_dir, filepart)
if os.path.isdir(abs_dst):
print('Tried to copy file %s but a directory of that name already exists.' % abs_dst)
+ sys.exit(1)
parent_dir = os.path.dirname(abs_dst)
if not os.path.isdir(parent_dir):
os.mkdir(parent_dir)
