• Julian Andres Klode's avatar
    Add a Packages-Require-Authorization Release file field · c2b9b048
    Julian Andres Klode authored
    This new field allows a repository to declare that access to
    packages requires authorization. The current implementation will
    set the pin to -32768 if no authorization has been provided in
    the auth.conf(.d) files.
    
    This implementation is suboptimal in two aspects:
    (1) A repository should behave more like NotSource repositories
    (2) We only have the host name for the repository, we cannot use
        paths yet.
    
    - We can fix those after an ABI break.
    
    The code also adds a check to acquire-item.cc to not use the
    specified repository as a download source, mimicking NotSource.
    c2b9b048
test-packages-require-authorization 1.53 KB