diff --git a/ubuntutools/archive.py b/ubuntutools/archive.py index 9375d17..35402a6 100644 --- a/ubuntutools/archive.py +++ b/ubuntutools/archive.py @@ -471,8 +471,11 @@ class SourcePackage(object): if urlparse(url).scheme in ["", "file"]: frompath = os.path.abspath(urlparse(url).path) - Logger.info("Copying %s from %s" % (filename, frompath)) - shutil.copyfile(frompath, pathname) + if frompath == pathname: + Logger.info("Using %s" % pathname) + else: + Logger.info("Copying %s from %s" % (filename, frompath)) + shutil.copyfile(frompath, pathname) else: try: with closing(urlopen(url)) as f: