After packaging fails, a softlink will be established, but this is wrong. If the packaging fails, the softlink should not be established.
Signed-off-by: Sun Yukui sun.yukui@foxmail.com --- tests/cci-makepkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/cci-makepkg b/tests/cci-makepkg index a87cf01f..37c5dc08 100755 --- a/tests/cci-makepkg +++ b/tests/cci-makepkg @@ -109,7 +109,8 @@ build_source_pkg(){ echo $LKP_SRC/sbin/makepkg -A --skippgpcheck --config $LKP_SRC/etc/makepkg.conf PACMAN=true BUILDDIR=$TMP CARCH=$arch PKGEXT=.cgz CGZDEST="$sync_dest/$cgz_name" \ $LKP_SRC/sbin/makepkg -A --skippgpcheck --config $LKP_SRC/etc/makepkg.conf + + [ "$?" == 0 ] || update_softlink }
build_source_pkg -update_softlink && echo "Makepkg finished successfully"