Don't checksum files that don't exist.
Change-Id: If7201310e58bd451b965821ac80f466714c2a684
This commit is contained in:
7
smithy
7
smithy
@@ -186,7 +186,7 @@ require()
|
|||||||
{
|
{
|
||||||
local rpm_name=$1
|
local rpm_name=$1
|
||||||
local py_name=$2
|
local py_name=$2
|
||||||
local always_build=$3
|
local always_build=$3
|
||||||
if [ -z "$rpm_name" -a -z "$py_name" ]; then
|
if [ -z "$rpm_name" -a -z "$py_name" ]; then
|
||||||
echo "Please specify at RPM or Python package name"
|
echo "Please specify at RPM or Python package name"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -210,7 +210,10 @@ needs_bootstrap()
|
|||||||
|
|
||||||
get_checksums()
|
get_checksums()
|
||||||
{
|
{
|
||||||
# used to tell if the file have changed
|
if [ ! -f "$BSCONF_FILE" ]; then
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
# Used to tell if the file have changed
|
||||||
echo $(md5sum "$BSCONF_FILE")
|
echo $(md5sum "$BSCONF_FILE")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user