From ce6f9e948e34a50e3117061f00df8c748e734d83 Mon Sep 17 00:00:00 2001 From: Markus Wagner Date: Fri, 17 Mar 2017 13:35:12 +0100 Subject: [PATCH] use copy2, so the timestamp information is also copied --- termux-apt-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termux-apt-repo b/termux-apt-repo index 7ecc7d6..5a8ca3c 100755 --- a/termux-apt-repo +++ b/termux-apt-repo @@ -40,7 +40,7 @@ def add_deb(deb_to_add_path): dest_deb_dir_path = component_path + '/binary-' + deb_arch if not os.path.isdir(dest_deb_dir_path): os.makedirs(dest_deb_dir_path) destination_deb_file = dest_deb_dir_path + '/' + os.path.basename(deb_to_add_path) - shutil.copy(deb_to_add_path, destination_deb_file) + shutil.copy2(deb_to_add_path, destination_deb_file) if len(sys.argv) == 3: input_path = sys.argv[1]