Skip to content
Snippets Groups Projects
Commit 0462d9b1 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Removed unnecessary output when dependencies not found. Changed suggested...

Removed unnecessary output when dependencies not found. Changed suggested buffer size from 100 to 1.
parent d357dd51
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ do ...@@ -51,7 +51,7 @@ do
;; ;;
?) ?)
echo "invalid input argument ${OPTION}" echo "invalid input argument ${OPTION}"
kill_exit "Usage: add_topic_publisher_subscriber.sh -o [publisher,subscriber] -p ros_pkg -t topic_name -m message.msg -b 100" kill_exit "Usage: add_topic_publisher_subscriber.sh -o [publisher,subscriber] -p ros_pkg -t topic_name -m message.msg -b 1"
exit exit
;; ;;
esac esac
...@@ -61,7 +61,7 @@ done ...@@ -61,7 +61,7 @@ done
if [ ! "${pub_subs}" ] || [ ! "${ros_pkg}" ] || [ ! "${topic_name}" ] || [ ! "${msg_file}" ] || [ ! "${buffer}" ] if [ ! "${pub_subs}" ] || [ ! "${ros_pkg}" ] || [ ! "${topic_name}" ] || [ ! "${msg_file}" ] || [ ! "${buffer}" ]
then then
echo "Missing input parameters..." echo "Missing input parameters..."
kill_exit "Usage: add_topic_publisher_subscriber.sh -o [publisher,subscriber] -p ros_pkg -t topic_name -m message.msg -b 100" kill_exit "Usage: add_topic_publisher_subscriber.sh -o [publisher,subscriber] -p ros_pkg -t topic_name -m message.msg -b 1"
fi fi
#check publisher subscriber parameter #check publisher subscriber parameter
......
...@@ -474,41 +474,29 @@ function check_package_file_integrity ...@@ -474,41 +474,29 @@ function check_package_file_integrity
comment="<build_depend>iri_base_${type}</build_depend>" comment="<build_depend>iri_base_${type}</build_depend>"
text_found_in_file "${comment}" "package.xml" text_found_in_file "${comment}" "package.xml"
if [[ "${text_found}" = "false" ]] if [[ "${text_found}" = "true" ]]
then then
echo "${comment} not found in package.xml file"
else
#echo "${comment} found in package.xml file"
build_depend=true build_depend=true
fi fi
comment="<depend>iri_base_${type}</depend>" comment="<depend>iri_base_${type}</depend>"
text_found_in_file "${comment}" "package.xml" text_found_in_file "${comment}" "package.xml"
if [[ "${text_found}" = "false" ]] if [[ "${text_found}" = "true" ]]
then then
echo "${comment} not found in package.xml file"
else
#echo "${comment} found in package.xml file"
depend=true depend=true
fi fi
comment="<exec_depend>iri_base_${type}</exec_depend>" comment="<exec_depend>iri_base_${type}</exec_depend>"
text_found_in_file "${comment}" "package.xml" text_found_in_file "${comment}" "package.xml"
if [[ "${text_found}" = "false" ]] if [[ "${text_found}" = "true" ]]
then then
echo "${comment} not found in package.xml file"
else
#echo "${comment} found in package.xml file"
exec_depend="true" exec_depend="true"
fi fi
comment="<run_depend>iri_base_${type}</run_depend>" comment="<run_depend>iri_base_${type}</run_depend>"
text_found_in_file "${comment}" "package.xml" text_found_in_file "${comment}" "package.xml"
if [[ "${text_found}" = "false" ]] if [[ "${text_found}" = "true" ]]
then then
echo "${comment} not found in package.xml file"
else
#echo "${comment} found in package.xml file"
run_depend="true" run_depend="true"
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment