diff options
Diffstat (limited to 'src/watch/upstream.rs')
| -rw-r--r-- | src/watch/upstream.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/watch/upstream.rs b/src/watch/upstream.rs index 8d7fa4f..c2772a2 100644 --- a/src/watch/upstream.rs +++ b/src/watch/upstream.rs @@ -214,7 +214,7 @@ pub fn resolve( } let _slot = StageBSlot::acquire(db::setting_i64(db, "stage_b_concurrency", 1) as usize); - let resolved = run(cfg, db, pb, recipe, recipe_hash, &tip_hash, stage_a)?; + let resolved = run(cfg, pb, recipe, recipe_hash, &tip_hash, stage_a)?; db::stage_b_cache_put(db, pb.id, recipe_hash, &tip_hash, &resolved.as_row())?; Ok(Some(resolved)) } @@ -222,7 +222,6 @@ pub fn resolve( /// The actual work: warm the clone cache, then ask `makepkg` what it computes. fn run( cfg: &Config, - db: &Db, pb: &Pkgbase, recipe: &Recipe, recipe_hash: &str, @@ -248,7 +247,6 @@ fn run( if let Ok(local) = git::head(&cache) { if !local.is_empty() && git::has_commit(&cache, &pin.commit) { pin.branch = pin.branch.clone().or_else(|| default_branch(&cache)); - let _ = local; } } } @@ -281,7 +279,6 @@ fn run( if pkgver.is_empty() { return Err(Error::other(format!("makepkg --vercheck produced {text:?}"))); } - let _ = db; Ok(StageB { epoch: recipe.epoch.clone(), pkgver, |
