[why] the cgz file is not generated, so soft link cannot be created.
error messages: ==> ERROR: Failure while downloading avro-c-1.9.2.tar.gz Aborting...
==> /tmp/stderr <== realpath: /initrd/build-pkg/nfs/openeuler/aarch64/20.03/avro-c/HEADCHECK.cgz: No such file or directory ln: failed to create symbolic link '/initrd/build-pkg/nfs/openeuler/aarch64/20.03/avro-c/latest.cgz' -> '': No such file or directory
Signed-off-by: Liu Shaofei liushaofei5@huawei.com --- tests/build-pkg | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tests/build-pkg b/tests/build-pkg index ad8d4843..1eed784f 100755 --- a/tests/build-pkg +++ b/tests/build-pkg @@ -90,6 +90,8 @@ build_source_pkg()
create_softlink() { + [ -e "$cgz_name" ] || return 0 + local soft_path="$PKG_MNT/${pack_to}/${pkgname}" local bm_name=$(basename $(realpath ${cgz_name}))