summaryrefslogtreecommitdiffstats
path: root/src/deb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/deb.sh')
-rwxr-xr-xsrc/deb.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deb.sh b/src/deb.sh
index 3020c56..41a351b 100755
--- a/src/deb.sh
+++ b/src/deb.sh
@@ -256,12 +256,15 @@ EOF
pkg="${1}"
+ # Get URL to DSC file.
dscurl="$(get_dsc_url "${pkg}")"
+ # Create clean destination for source package files.
rm -Rf "${DEB_TREE}/dsc/${pkg}"
mkdir -p "${DEB_TREE}/dsc/${pkg}"
cd "${DEB_TREE}/dsc/${pkg}"
+ # Download source package files.
printf 'Downloading source package "%s"...\n' "${pkg}"
dget -d "${CONFIG_mirror}/${dscurl}" || error 'Cannot download source package'