diff options
Diffstat (limited to 'src/deb.sh')
-rwxr-xr-x | src/deb.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -296,6 +296,13 @@ EOF ver="${ver#${pkg}_}" ver="${ver%-*}" + # Check if source package is already unpacked. + if [ -d "${DEB_TREE}/work/${pkg}/${pkg}-${ver}" ]; then + prompt_bool n \ + 'Source package "%s" already unpacked for editing. Remove?' \ + "${pkg}" || exit + fi + # Create clean work area for source package. rm -Rf "${DEB_TREE}/work/${pkg}" mkdir -p "${DEB_TREE}/work/${pkg}" |