Bug#816022: debsnap: should clean up when unsuccessful
Martin Michlmayr
tbm at hpe.com
Fri Feb 26 18:29:39 UTC 2016
Package: devscripts
Version: 2.16.1
User: devscripts at packages.debian.org
Usertags: debsnap
Running the same unsuccessful (due to a typo in the arch name) debsnap
command twice results in an error. debsnap should remove the directory
it creates when unsuccessful.
65600:tbm at loric-alpo: ~/c] debsnap -a arch64 cpp-6 6-20160225-1
debsnap: No binary packages found for cpp-6 version 6-20160225-1 on arch64
zsh: exit 2 debsnap -a arch64 cpp-6 6-20160225-1
65601:tbm at loric-alpo: ~/c] debsnap -a arch64 cpp-6 6-20160225-1
debsnap: fatal error at line 220:
Destination dir binary-cpp-6 already exists.
Please (re)move it first, or use --force to overwrite.
zsh: exit 1 debsnap -a arch64 cpp-6 6-20160225-1
65602:tbm at loric-alpo: ~/c] ls -l
total 4
drwxr-xr-x 2 tbm tbm 4096 Feb 26 10:28 binary-cpp-6
65603:tbm at loric-alpo: ~/c]
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the devscripts-devel
mailing list