From 43e05ad42c876ef2987663f956d316976fcf4a15 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Thu, 23 Jan 2025 17:50:17 +0530 Subject: fix order of return tuple --- blocks/Xcos/ParserFunctions.py | 2 +- blocks/xcos2xml/replacesplitblocks.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blocks/Xcos/ParserFunctions.py b/blocks/Xcos/ParserFunctions.py index cc0479fa..2849e302 100644 --- a/blocks/Xcos/ParserFunctions.py +++ b/blocks/Xcos/ParserFunctions.py @@ -397,7 +397,7 @@ def switchPorts(sourceVertex, sourceType, targetVertex, targetType, waypoints): waypoints.reverse() switch_split = True - return (sourceType, sourceVertex, targetType, targetVertex, switch_split) + return (sourceVertex, sourceType, targetVertex, targetType, switch_split) def getLinkStyle(attribid, sourceVertex, sourceType, targetVertex, targetType, waypoints): diff --git a/blocks/xcos2xml/replacesplitblocks.sh b/blocks/xcos2xml/replacesplitblocks.sh index 89fbee8b..3fe60922 100755 --- a/blocks/xcos2xml/replacesplitblocks.sh +++ b/blocks/xcos2xml/replacesplitblocks.sh @@ -2,9 +2,9 @@ usage() { echo "Usage:" >&2 - echo " $0 input-file.xcos > output-file.xml" >&2 - echo " $0 input-file.xml > output-file.xml" >&2 - exit 1 + echo " $0 input-file.xcos" >&2 + echo " $0 input-file.xml" >&2 + exit 101 } if test $# -ne 1; then @@ -114,7 +114,7 @@ INPUT1="$BASE.xml" echo "Creating $INPUT1" >&2 cp -f "$TMPFILE2" "$INPUT1" -rm -f "$BASE."*.xml +rm -f "$BASE-"*.xml oldrv=100 -- cgit