[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#771864: libdebian-installer - dependency resolver support excluding packages

retitle 771864 libdebian-installer - dependency resolver needs to support excluding packages
tags 771864 patch

I have attached a more complete patch

commit 44c141d0d050f8cc3f9311c07ddc42a0baf69092
Author: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.it>
Date:   Wed Dec 3 22:55:07 2014 +0000

    Add preference for resolving conditional dependencies
    Previously when parsing "Depends: A | B | C" only
    a dependency on A would be registered. This patch
    makes it possible to pass an di_slist of packages
    to be skip on such a list, ie. if a was in the
    exclude list, b would be considered, and so on.
    If both A, B and C is on the exclude list, C
    would be used anyway.
    This doesn't implement complete exclude support,
    but support excluding packages in that are pulled
    in via conditional dependencies.
    I have knownily broken the ABI for di_packages_special_read_file(),
    since accordingly to codesearch.d.n it is only
    used internally.
    Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.it>

 include/debian-installer/package_internal.h |  1 +
 include/debian-installer/packages.h         | 33 +++++++++++++++++++++++++++++----
 include/debian-installer/system/packages.h  |  4 ++--
 src/package_parser.c                        | 27 ++++++++++++++++++++++++++-
 src/packages_parser.c                       |  5 +++--
 5 files changed, 61 insertions(+), 9 deletions(-)

Best regards
Asbjørn Sloth Tønnesen

Attachment: exclude.patch
Description: Binary data

Reply to: