diff options
Diffstat (limited to 'src/usecase/subscriptions.rs')
| -rw-r--r-- | src/usecase/subscriptions.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usecase/subscriptions.rs b/src/usecase/subscriptions.rs index c504cfe..a37e650 100644 --- a/src/usecase/subscriptions.rs +++ b/src/usecase/subscriptions.rs @@ -9,11 +9,7 @@ pub struct Subscribe { pub url: String, } -/// Start watching a pkgbase. -/// -/// The repo row has to be resolved first, which is the step every front end -/// previously open-coded — and the web layer got it wrong, falling back to repo -/// id 1 rather than saying the repository was not initialised. +/// Start watching a pkgbase, resolving the repo row first. pub fn subscribe(db: &Db, pkgbase: &str, url: Option<String>) -> Result<Subscribe> { let rid = db::repo_id(db)?; let url = url.unwrap_or_else(|| format!("https://aur.archlinux.org/{pkgbase}.git")); |
