Skip to content

Commit bc878b5

Browse files
author
Ishimoto Shinobu
committed
extra check
Signed-off-by: Ishimoto Shinobu <[email protected]>
1 parent d694cce commit bc878b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tsukuri.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,12 @@ tsukuri_upgrade() {
11431143

11441144
msg "Overall transaction: "
11451145
for i in $deps; do
1146-
printf "[\e[0;32mUPGRADE\e[0m] $i from $(get_instver $i) to $(get_portver $i) \n"
1146+
get_instver $i &>/dev/null;
1147+
if test $? -ne 0; then
1148+
printf "[\e[0;32mUPGRADE\e[0m] $i to $(get_portver $i) \n"
1149+
else
1150+
printf "[\e[0;32mUPGRADE\e[0m] $i from $(get_instver $i) to $(get_portver $i) \n"
1151+
fi
11471152
done
11481153

11491154
for i in $deps; do

0 commit comments

Comments
 (0)