public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-6-g5707461 Date: Sun, 12 Feb 2023 23:19:42 +0000 (GMT) [thread overview] Message-ID: <20230212231942.DB6A83858D35@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=57074613ba08e7d101e1836ce838e16f9a85b48f commit 57074613ba08e7d101e1836ce838e16f9a85b48f Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sun Feb 12 23:15:34 2023 +0000 Rework how 'OBSOLETE' is handled in package list Previously, we'd do some rearrangement of the release area, so the obsoleted package would be moved under the obsoleting package, so it didn't need to exist at all in the package list and we could safely ignore it. We don't need or want to bother with that now, so let obsolete packages paths exist. Future work: This needs some thought about how we want to work. Perhaps prohibit uploads? Perhaps error if the package marked OBSOLETE isn't actually obsoleted by something? https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=2bcfd3e6beae8e78a8570f669d822d9bd6e90fc5 commit 2bcfd3e6beae8e78a8570f669d822d9bd6e90fc5 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sun Feb 12 12:36:57 2023 +0000 Improve hint parser error for embedded double quote https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=1c93887c031f8d320cee79524b1349a0f2bb75cb commit 1c93887c031f8d320cee79524b1349a0f2bb75cb Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Tue Feb 7 15:14:46 2023 +0000 Give deploy status feedback into scallywag Also: isolate each individual deploy, by putting them in a subdirectory of stagingdir named after the job id. Diff: --- calm/maintainers.py | 11 +++++++++-- calm/scallywag_db.py | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/calm/maintainers.py b/calm/maintainers.py index cc75040..d0497cb 100644 --- a/calm/maintainers.py +++ b/calm/maintainers.py @@ -168,9 +168,13 @@ def _read_pkglist(pkglist): if status_match: status = status_match.group(1) - # ignore packages marked as 'OBSOLETE' + # packages marked as 'OBSOLETE' are obsolete if status == 'OBSOLETE': - continue + # obsolete packages have no maintainer + # + # XXX: perhaps disallow even trusties to upload (or + # warn if they try?) + m = '' # orphaned packages are assigned to 'ORPHANED' elif status == 'ORPHANED': @@ -190,6 +194,9 @@ def _read_pkglist(pkglist): # joint maintainers are separated by '/' maintainers = list() for name in m.split('/'): + if not name: + continue + name = name.strip() # is the maintainer name ascii? diff --git a/calm/scallywag_db.py b/calm/scallywag_db.py index 42ce381..a310c55 100644 --- a/calm/scallywag_db.py +++ b/calm/scallywag_db.py @@ -52,3 +52,5 @@ def do_deploys(cb): status = 'deploy failed' conn.execute("UPDATE jobs SET status = ? WHERE id = ?", (status, r.id)) + + conn.commit()
reply other threads:[~2023-02-12 23:19 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230212231942.DB6A83858D35@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).