# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
# SPDX-FileCopyrightText: 2023 Harald Sitter <sitter@kde.org>

Acquire::IndexTargets {
    # acquire neon's APT pins
    deb::neon-pins {
        MetaKey "$(COMPONENT)/neon/pins";
        ShortDescription "Neon APT pins";
        Description "$(RELEASE)/$(COMPONENT) Neon APT Pins";
        KeepCompressed "false";
    };
};

APT::Update::Post-Invoke-Success {
    "OVERRIDES=$(apt-get indextargets --format '$(FILENAME) | head -n 1' 'Identifier: neon-pins') && OVERRIDES_LINK='/etc/apt/preferences.d/99-noble-overrides' && ln -s -f $OVERRIDES $OVERRIDES_LINK && echo 'Updating KDE neon pins... Done'"
};
