if packages have already installed in OS, cci-depends cgz file should not be generated, so cgz file won't be uploaded
Signed-off-by: Wang Yong wangyong0117@qq.com --- distro/common | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/distro/common b/distro/common index cdb531403..166ff8550 100755 --- a/distro/common +++ b/distro/common @@ -89,5 +89,7 @@ upload_to_target_dir() local dir="$1" local file="$(ls -F ${dir} | grep -v "@")"
+ [ -z "${file}" ] && return 0 + upload_one_curl "${dir}/${file}" "${dir}" >/dev/null }