summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/deb.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/deb.sh b/src/deb.sh
index 5c239f1..3020c56 100755
--- a/src/deb.sh
+++ b/src/deb.sh
@@ -97,6 +97,7 @@ config_save()
get_dsc_url()
{
+ [ ! -f "${DEB_DIR}/dsc.list" ] && error 'No source package list found'
_pkg="${1}"
_dscurl=$(grep "^${_pkg} " "${DEB_DIR}/dsc.list" | tail -n 1) || \
error 'Package "%s" not found' "${pkg}"
@@ -253,8 +254,6 @@ EOF
exit 1
fi
- [ ! -f "${DEB_DIR}/dsc.list" ] && error 'No source package list found'
-
pkg="${1}"
dscurl="$(get_dsc_url "${pkg}")"
@@ -281,8 +280,6 @@ EOF
exit 1
fi
- [ ! -f "${DEB_DIR}/dsc.list" ] && error 'No source package list found'
-
pkg="${1}"
dsc="$(get_dsc_name "${pkg}")"
@@ -312,8 +309,6 @@ EOF
exit 1
fi
- [ ! -f "${DEB_DIR}/dsc.list" ] && error 'No source package list found'
-
pkg="${1}"
# Find source package in internal list.