From 90cf1500269e34093509f05e14be1493dbcdede6 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 31 Aug 2026 13:50:16 +0700 Subject: [PATCH] Remove automatic fetching from change repo local --- src/bin/repo/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/bin/repo/main.rs b/src/bin/repo/main.rs index 274f99b0a..ac331a290 100644 --- a/src/bin/repo/main.rs +++ b/src/bin/repo/main.rs @@ -1060,7 +1060,6 @@ fn handle_change_rule( CliCommand::ChangeRule | CliCommand::ChangeRuleLocal ); let is_capture_rev = matches!(command, CliCommand::CaptureRev); - let is_change_rule_local = matches!(command, CliCommand::ChangeRuleLocal); for recipe in recipes { if is_change_rule && recipe.name.is_host() { // host packages will always be "source" so it's pointless to change their rule @@ -1118,18 +1117,13 @@ fn handle_change_rule( } else { lock.insert(recipe_name.to_string(), recipe_lock); } - let mut fetch_cached = true; - if is_change_rule_local && !recipe.dir.join("source").exists() { - // previously, this is "binary", then user wants to hack around with the source, so we do fetch here - fetch_cached = handle_fetch(recipe, config, false, &None)?.cached; - } let clean_cached = if !cached && is_change_rule { handle_clean(recipe, config, &CliCommand::Clean)? } else { true }; - if cached && clean_cached && fetch_cached { + if cached && clean_cached { print_cached(command, &recipe.name); } else { print_success(command, &recipe.name);