{"thread":{"id":"7957","subject":"[PATCH StGIT] Fix deleting series trash directory","startedAt":"2007-05-03T18:29:41Z","lastAt":"2007-05-03T18:29:41Z","messageCount":1,"participants":["Roland Dreier"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"40970","messageId":"adalkg5ep62.fsf@cisco.com","threadId":"7957","inReplyTo":null,"subject":"[PATCH StGIT] Fix deleting series trash directory","fromName":"Roland Dreier","fromEmail":"rdreier@cisco.com","sentAt":"2007-05-03T18:29:41Z","receivedAt":"2007-05-03T18:29:41Z","isPatch":true,"sender":{"key":"rdreier@cisco.com","avatar":null},"body":"When deleting a series, the loop that iterates through the files in\n__trash_dir needs to add __trash_dir to the filename that it passes to\nos.remove().\n\nSigned-off-by: Roland Dreier <rolandd@cisco.com>\n---\ndiff --git a/stgit/stack.py b/stgit/stack.py\nindex b0a01dd..4e5ddb3 100644\n--- a/stgit/stack.py\n+++ b/stgit/stack.py\n@@ -665,7 +665,7 @@ class Series(StgitObject):\n \n             # remove the trash directory\n             for fname in os.listdir(self.__trash_dir):\n-                os.remove(fname)\n+                os.remove(os.path.join(self.__trash_dir, fname))\n             os.rmdir(self.__trash_dir)\n \n             # FIXME: find a way to get rid of those manual removals\n"}]}