From: Catalin Marinas Date: Thu, 5 Jun 2008 21:20:14 +0000 (+0100) Subject: Fix the parse_patches() function to work with tuples X-Git-Tag: v0.15-rc1~216 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/383f9458a2373046db248efb8d767e725de72907 Fix the parse_patches() function to work with tuples The series command passes a tuple to parse_patches instead of a patch list (the new infrastructure) but there is no patch_list.index() function. The patch transforms the tuple into a list. Signed-off-by: Catalin Marinas --- diff --git a/stgit/commands/common.py b/stgit/commands/common.py index 100b5e1..029ec65 100644 --- a/stgit/commands/common.py +++ b/stgit/commands/common.py @@ -206,6 +206,8 @@ def parse_patches(patch_args, patch_list, boundary = 0, ordered = False): a list. The names can be individual patches and/or in the patch1..patch2 format. """ + # in case it receives a tuple + patch_list = list(patch_list) patches = [] for name in patch_args: