From b0f1cec3b50ddb4e85570cde0567b55aca907be6 Mon Sep 17 00:00:00 2001 From: Ricky Zhou Date: Jul 17 2009 14:30:58 +0000 Subject: Use a copy function that copies metadata as well. --- diff --git a/mash/__init__.py b/mash/__init__.py index 7c781e9..ffba1b7 100644 --- a/mash/__init__.py +++ b/mash/__init__.py @@ -190,7 +190,7 @@ class Mash: try: os.link(result, dst) except: - shutil.copyfile(result, dst) + shutil.copy2(result, dst) return 0 def _write_files(list, path, repo_path, comps = False, repocache = None, arch = None):