hs-intake 0.19.0

Hyperscale package intake tool — compare RPM package metadata between branches
Documentation
// SPDX-License-Identifier: Apache-2.0 OR MIT

use crate::compare::{self, CompareResult};
use crate::fedrq::Fedrq;

/// Compare the BuildRequires of a source package between two branches.
///
/// Self-dependencies (build-requires on the srpm's own subpackages) are
/// filtered out.
pub fn compare_buildrequires(
    srpm: &str,
    source_branch: &str,
    target_branch: &str,
) -> Result<CompareResult, crate::fedrq::Error> {
    compare::compare_attr(
        srpm,
        source_branch,
        target_branch,
        Fedrq::src_buildrequires,
        true,
    )
}