diff --git a/dnf/base.py b/dnf/base.py index dac3cefd7a..c1affc8cba 100644 --- a/dnf/base.py +++ b/dnf/base.py @@ -1320,7 +1320,10 @@ def download_packages(self, pkglist, progress=None, callback_total=None): pkg.location.lstrip("/")) else: location = os.path.join(pkg.repo.pkgdir, pkg.location.lstrip("/")) - shutil.copy(location, self.conf.destdir) + try: + shutil.copy(location, self.conf.destdir) + except shutil.SameFileError: + pass def add_remote_rpms(self, path_list, strict=True, progress=None): # :api