aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update_package.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/update_package.sh b/update_package.sh
index 0ffda8b..d5bec8a 100644
--- a/update_package.sh
+++ b/update_package.sh
@@ -31,7 +31,7 @@ cd $tmp_dir
function CopyIfPresent() {
if [ -e $external_dir/$1 ]; then
- cp -a -n $external_dir/$1 .
+ cp -a --update=none $external_dir/$1 .
fi
}
@@ -41,16 +41,16 @@ CopyIfPresent "Android.mk"
CopyIfPresent "CleanSpec.mk"
CopyIfPresent "LICENSE"
CopyIfPresent "NOTICE"
-cp -a -f -n $external_dir/MODULE_LICENSE_* .
+cp -a -f --update=none $external_dir/MODULE_LICENSE_* .
CopyIfPresent "METADATA"
CopyIfPresent "TEST_MAPPING"
CopyIfPresent ".git"
CopyIfPresent ".gitignore"
if compgen -G "$external_dir/cargo2android*"; then
- cp -a -f -n $external_dir/cargo2android* .
+ cp -a -f --update=none $external_dir/cargo2android* .
fi
if compgen -G "$external_dir/cargo_embargo*"; then
- cp -a -f -n $external_dir/cargo_embargo* .
+ cp -a -f --update=none $external_dir/cargo_embargo* .
fi
CopyIfPresent "patches"
CopyIfPresent "post_update.sh"
@@ -58,7 +58,7 @@ CopyIfPresent "OWNERS"
CopyIfPresent "README.android"
CopyIfPresent "rules.mk"
if compgen -G "$external_dir/cargo2rulesmk*"; then
- cp -a -f -n $external_dir/cargo2rulesmk* .
+ cp -a -f --update=none $external_dir/cargo2rulesmk* .
fi
file_counter=0