diff options
Diffstat (limited to 'src/watch/detect.rs')
| -rw-r--r-- | src/watch/detect.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/detect.rs b/src/watch/detect.rs index deb0749..37bdc8a 100644 --- a/src/watch/detect.rs +++ b/src/watch/detect.rs @@ -54,7 +54,7 @@ pub fn check_pkgbase(cfg: &Config, db: &Db, name: &str) -> Result<CheckReport> { // must not keep polling AUR either. The pause lives on the subscription, so // that is what we consult. let paused = db::get_subscription(db, name)? - .map(|s| s.state == subscription_state::PAUSED) + .map(|s| s.state == SubscriptionState::Paused) .unwrap_or(false); if paused { return Ok(CheckReport { pkgbase: name.into(), head: String::new(), outcome: Outcome::Paused }); @@ -69,7 +69,7 @@ pub fn check_pkgbase(cfg: &Config, db: &Db, name: &str) -> Result<CheckReport> { "high", serde_json::json!({"aur_url": pb.aur_url, "note": "repository no longer exists"}), )?; - db::set_subscription_state(&db.writer, name, subscription_state::ORPHANED)?; + db::set_subscription_state(&db.writer, name, SubscriptionState::Orphaned)?; return Ok(CheckReport { pkgbase: name.into(), head: String::new(), outcome: Outcome::Gone }); } // The cheap poll saved us a fetch, but we still have to look: a source |
