Description: TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . germinate (2.25-lliurex3) xenial; urgency=medium . * Add blacklist packages capabilities using "* !package" inside upper seed Author: M.Angel Juan --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: https://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- germinate-2.25.orig/germinate/scripts/germinate_update_metapackage.py +++ germinate-2.25/germinate/scripts/germinate_update_metapackage.py @@ -304,6 +304,14 @@ def main(argv): except SeedError: sys.exit(1) + print("[%s] Loading dist blacklist..." % architecture) + try: + f=open("seeds/%s/blacklist"%seed_dist) + germinator.parse_blacklist(structure,f) + blacklist=germinator._output[structure]._blacklist + except Exception as blacklist_exception: + pass + print("[%s] Merging seeds with available package lists..." % architecture) for seed_name in output_seeds: @@ -322,9 +330,10 @@ def main(argv): new_list = [] packages = seed_packages(germinator.get_seed_entries, structure, seed_name) + semilla = germinator._get_seed(structure,seed_name) - blacklist = semilla._blacklist - + local_blacklist = semilla._blacklist + for package in packages: if package == meta_name: print("%s/%s: Skipping package %s (metapackage)" % @@ -336,7 +345,7 @@ def main(argv): elif germinator.is_essential(package): print("%s/%s: Skipping package %s (essential)" % (seed_name, architecture, package)) - elif package in blacklist: + elif package in blacklist or package in local_blacklist: print("%s/%s: Skipping blacklisted package %s" % (seed_name, architecture, package)) else: