deb,quirks: scope deb entries per series with an entry list
One deb block per package cannot express two series needing different rules. Make pull and deb lists of entries, each with its own series scope: every matching entry applies, in file order, so a stonking entry can carry its own dependency rules next to the resolute one. Thread the series through find_package_directory for the package_directory lookup, which keeps its deb-then-pull fallback.
This commit is contained in:
+2
-1
@@ -231,9 +231,10 @@ pub async fn build(
|
||||
return Err("Could not install essential packages for the build".into());
|
||||
}
|
||||
|
||||
// Find the actual package directory
|
||||
// Find the actual package directory
|
||||
let package_dir =
|
||||
crate::deb::find_package_directory(Path::new(build_root), package, version, &ctx)?;
|
||||
crate::deb::find_package_directory(Path::new(build_root), package, version, series, &ctx)?;
|
||||
let package_dir_str = package_dir
|
||||
.to_str()
|
||||
.ok_or("Invalid package directory path")?;
|
||||
|
||||
Reference in New Issue
Block a user