source: germinate/trunk/fuentes/debian/patches/enhanced_recursive @ 733

Last change on this file since 733 was 733, checked in by kbut, 4 years ago

recursive enhanced

File size: 2.1 KB
Line 
1Description: <short summary of the patch>
2 TODO: Put a short summary on the line above and replace this paragraph
3 with a longer explanation of this change. Complete the meta-information
4 with other relevant fields (see below for details). To make it easier, the
5 information below has been extracted from the changelog. Adjust it or drop
6 it.
7 .
8 germinate (2.23-lliurex1) xenial; urgency=medium
9 .
10   * Port code from 2.23 to lliurex xenial version.
11   * Integrated lliurex changes from older versions.
12Author: M.Angel Juan <m.angel.juan@gmail.com>
13
14---
15The information above should follow the Patch Tagging Guidelines, please
16checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
17are templates for supplementary fields that you might want to add:
18
19Origin: <vendor|upstream|other>, <url of original patch>
20Bug: <url in upstream bugtracker>
21Bug-Debian: http://bugs.debian.org/<bugnumber>
22Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
23Forwarded: <no|not-needed|url proving that it has been forwarded>
24Reviewed-By: <name and email of someone who approved the patch>
25Last-Update: <YYYY-MM-DD>
26
27--- germinate-2.23.orig/germinate/scripts/germinate_update_metapackage.py
28+++ germinate-2.23/germinate/scripts/germinate_update_metapackage.py
29@@ -186,10 +186,14 @@ def main(argv):
30             if seed_name not in mapped_seeds:
31                 mapped_seeds.append(seed_name)
32         packages = []
33-        if options.recursive:
34-            mapped_seeds.extend(structure.inner_seeds(seed_name))
35-            mapped_seeds = list(set(mapped_seeds))
36-
37+        task_seeds_re = re.compile('^Task-Recursive:\s*(.*)', re.I)
38+        with structure[seed_name] as seed:
39+            for line in seed:
40+                task_seeds_match = task_seeds_re.match(line)
41+                if task_seeds_match is not None:
42+                    mapped_seeds.extend(structure.inner_seeds(seed_name))
43+                    mapped_seeds = list(set(mapped_seeds))
44+                    break
45         for mapped_seed in mapped_seeds:
46             packages.extend(germinator_method(structure, mapped_seed))
47         return packages
Note: See TracBrowser for help on using the repository browser.