From 3a5f2a4f839227f3ee345cb4d657cb425f9058fc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 10 Nov 2012 15:52:00 -0500 Subject: Don't print error when there's no substvars file. --- (limited to 'lib') diff --git a/lib/package/2.sh b/lib/package/2.sh index 1c643ef..b9882be 100644 --- a/lib/package/2.sh +++ b/lib/package/2.sh @@ -163,7 +163,9 @@ _ob_set_package_substvars_2() return ${?} fi - ob_parse_control "${_OB_PACKAGE_DIR}/substvars" _ob_substvar_2 + if [ -f "${_OB_PACKAGE_DIR}/substvars" ]; then + ob_parse_control "${_OB_PACKAGE_DIR}/substvars" _ob_substvar_2 + fi ob_set_substvar 'Source-Version' "$(ob_get_source_parameter 'Version')" ob_set_substvar 'Binary-Version' "$(ob_get_source_parameter 'Version')" -- cgit v0.9.1