churchyard / releng

Forked from releng 5 years ago
Clone

0d9d2cf Orphans report: Include dependency chain in the JSON

1 file Authored by churchyard 3 years ago, Committed by mohanboddu 3 years ago,
    Orphans report: Include dependency chain in the JSON
    
    Example:
    
        {
            "affected_packages": {
                "CutyCapt": [],
                "GtkAda": [
                    "libglade2"
                ],
                "NetworkManager": [
                    "gnutls"
                ],
                "OpenSceneGraph": [
                    "pangox-compat"
                ],
                "R-V8": [
                    "R-rmarkdown"
                ],
                "R-broom": [
                    "R-rmarkdown"
                ],
                ...
                "abgraph": [],
                "abiword": [
                    "gnutls"
                ],
                "accrete": [],
                "alleyoop": [
                    "libglade2"
                ],
                "amqp": [],
                "apache-commons-configuration": [
                    "apache-commons-vfs"
                ],
                "apache-commons-vfs": [],
                ...
            },
            "status_change": {
                "CutyCapt": "2020-05-13T05:50:55",
                "abgraph": "2020-05-26T22:56:23",
                "accrete": "2020-05-26T22:56:25",
                "amqp": "2020-06-04T18:06:26",
                "apache-commons-vfs": "2020-05-15T18:23:34",
                ...
            }
        }
    
    Each affected package has a list of packages that "made" it affected.
    When the list is empty, the package is only affected because it is orphaned.
    
    Note that even orphaned packages can be affected by other orphaned packages.
    
    Signed-off-by: Miro Hrončok <miro@hroncok.cz>