diff options
| author | aur-build <aur-build@localhost> | 2026-11-23 13:44:20 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-23 13:44:20 +0000 |
| commit | 4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (patch) | |
| tree | c61c2274e3810669cef8319cf9980cbbe031f840 /src/usecase/subscriptions.rs | |
| parent | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (diff) | |
| download | aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.tar.gz aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.zip | |
usecase,http,pipeline,ops: keep the contract, drop the argument
A workflow's doc now says what it guarantees and stops defending its
existence: `subscribe` resolves the repo row, `approve` queues what the
approval buys, a per-item failure comes back as a value instead of a
panic. The history of which front end used to open-code it is gone.
The last census-war notes go with it — three places that explained why a
name in a test string was not a caller.
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")); |
