make rdelete more fool proof
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 24 Nov 2010 13:17:14 +0000 (14:17 +0100)
committerLudwig Nussel <ludwig.nussel@suse.de>
Wed, 24 Nov 2010 13:24:59 +0000 (14:24 +0100)
commit3631df59d4ded820bbfafe829bc47ec3ae308c98
treea58ac66e39baa24e127e9a712eeb8f6e7210f02a
parent0bb0fb80f1f4a1e4dd5a6228985eb7bf2d5a8d38
make rdelete more fool proof

The previous convention of allowing multiple packages has caused
accidental deletion of packages while deleting files was intended (which
doesn't work that way). e.g. osc rdelete foo/bar/baz.spec would delete
foo/bar and then fail trying to delete foo/baz.spec

Also calling osc rdelete with accidental slash, e.g. osc rdelete
/foo/bar actually deleted project foo including all it's packages
without asking questions.

Both traps are eliminated now.
osc/commandline.py