From 47282ba9dda42846e23db72894bd3c893e2c7e66 Mon Sep 17 00:00:00 2001 From: Ron Williams Date: Thu, 21 Nov 2024 02:17:25 -0800 Subject: [PATCH] Accept "source" as an alternative to "recipe" --- src/bin/installer.rs | 2 +- src/bin/list_packages.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/installer.rs b/src/bin/installer.rs index 152820c430..0b6190e5fd 100644 --- a/src/bin/installer.rs +++ b/src/bin/installer.rs @@ -68,7 +68,7 @@ fn main() { // List the packages that should be fetched or built by the cookbook for (packagename, package) in &config.packages { match package { - PackageConfig::Build(rule) if rule == "recipe" => { + PackageConfig::Build(rule) if rule == "recipe" || rule == "source" => { println!("{}", packagename); } PackageConfig::Build(rule) if rule == "binary" => { diff --git a/src/bin/list_packages.rs b/src/bin/list_packages.rs index f5f6245d88..c5410cb940 100644 --- a/src/bin/list_packages.rs +++ b/src/bin/list_packages.rs @@ -55,7 +55,7 @@ fn main() { // List the packages that should be fetched or built by the cookbook for (packagename, package) in &config.packages { match package { - PackageConfig::Build(rule) if rule == "recipe" => { + PackageConfig::Build(rule) if rule == "recipe" || rule == "source" => { println!("{}", packagename); } PackageConfig::Build(rule) if rule == "binary" => {