packages feed

fbrnch 1.8.4 → 1.8.5

raw patch · 8 files changed

+52/−35 lines, 8 filesdep ~forgejo

Dependency ranges changed: forgejo

Files

CHANGELOG.md view
@@ -1,8 +1,12 @@ # Changelog +## 1.8.5 (2026-11-24)+- 'build', 'parallel': offer to request missing branch+- update to forgejo-0.2+ ## 1.8.4 (2026-11-23)-- 'build','parallel': list open PRs before proceeding to building-- 'compare-tarballs','update-sources': improved source name/version logic+- 'build', 'parallel': list open PRs before proceeding to building+- 'compare-tarballs', 'update-sources': improved source name/version logic - 'compare-tarballs': download (older) tarball if missing - 'copr': improved state wait logic - 'import': don't ask for branches again if coming from request-repos@@ -13,11 +17,11 @@ - 'request-branches': intercept expired token to allow creating a new one - 'request-branches': rename --skip-check to --skip-koji-check - 'request-repos': intercept expired token to allow creating a new one inline-- 'request-repos','request-branches': now use forgejo to check Fedora Forge+- 'request-repos', 'request-branches': now use forgejo to check Fedora Forge - 'review-package': prefix prep timing output - 'review-package': specify files to rpmlint - 'review-package': highlight differing source with red-- 'sort','graph': add --deps (closes #74)+- 'sort', 'graph': add --deps (closes #74) - add `--dryrun` option to many more commands - Bodhi: retry without re-asking for notes when update creation failed - RpmBuild getSources: be pedantic about spectool result (#74)@@ -46,7 +50,7 @@ - 'compare-tarballs': include extension in file args help - 'copr': retry coprGetBuild when watching a build - 'install': take %_rpmdir into account-- 'local','install': rename --rebuild to --force-build+- 'local', 'install': rename --rebuild to --force-build - 'parallel': for single package do full kojiWaitTask - 'parallel': notify-send for failure or --must-push failure - 'parallel': use reverse text to highlight problem prompts@@ -76,7 +80,7 @@ - 'branch-log': logic to warn about older branch being ahead - 'build --sidetag': fix "release not found for branch f43" rawhide regression - 'build': use --ref to build from a commit-- 'build','parallel': can now merge --from a particular branch+- 'build', 'parallel': can now merge --from a particular branch - 'commit': error if changelog is unstaged - 'commit': require -b option to confirm non-rawhide commit - 'compare-branches': renamed from 'compare'@@ -205,9 +209,9 @@ - withPackagesByBranches: print package header earlier before fetching  ## 1.6.1 (2024-12-17)-- 'build','parallel': waitrepo now just uses "koji wait-repo --request"+- 'build', 'parallel': waitrepo now just uses "koji wait-repo --request" - 'build': now respects --waitrepo-- 'local','install': new --jobs option for _smp_ncpus_max+- 'local', 'install': new --jobs option for _smp_ncpus_max - waitrepo is timed - Koji targetMaybeSidetag: print sidetags if more than one @@ -227,7 +231,7 @@ * 'review-package': allow --interactive also for local review - 'review-package': summarize long rpmlint error output - 'reviews --created': now uses REL_PREP state-- 'scratch-x86_64','scratch-aarch64': --exclude-arch no longer fast fails+- 'scratch-x86_64', 'scratch-aarch64': --exclude-arch no longer fast fails - 'sidetag': add --create - 'update': remove %autorelease -b bump when updating version - Common.System: override cmdFull to avoid weird lazy IO crash@@ -269,7 +273,7 @@ - 'parallel': koji-tool use --children to get failed buildArch - 'parallel': only do parallelBranches build if more than 1 branch * 'parallel': better concurrent output with say library-* 'prep','update': use cwd for %_sourcedir+* 'prep', 'update': use cwd for %_sourcedir - 'prep': --allow-head - 'pull': add --rebase - 'push': print log relative to origin@@ -310,13 +314,13 @@ - 'commit': don't print singleline commit msg unnecessarily - 'commit': unquote macros from changelog diff for commit msg - 'copr': don't use localBranchSpecFile rawhide-- 'copr','scratch': doc --exclude-arch only takes a single arch+- 'copr', 'scratch': doc --exclude-arch only takes a single arch - 'create-review': set bug url field with spec url - 'ftbfs': include Modified bugs - 'import': use Yes/no prompt to push - 'install': now defaults to verbose build output with a --quiet option-- 'local','install': -c short option for --short-compile-- 'local','install': re-backup previous buildlog if bigger than current+- 'local', 'install': -c short option for --short-compile+- 'local', 'install': re-backup previous buildlog if bigger than current - 'merge': add newline after unmerged commits - 'mock': can now build from non-dist-git - 'move-artifacts': allow dirty@@ -337,7 +341,7 @@  earlier changes from November: -- 'build','parallel': checkSourcesMatch now offers to 'update-sources'+- 'build', 'parallel': checkSourcesMatch now offers to 'update-sources' - 'build': only check tags if overriding - 'builddeps': renamed from 'install-deps' - 'commit': if 2 lines then add second without - prefix@@ -361,7 +365,7 @@ ## 1.3.3 (2023-10-19) - 'bump': add --dry-run - 'copr': track pkg name to output build results url on failure-- 'create-review','update-review': prompt to offer scratch build (#43)+- 'create-review', 'update-review': prompt to offer scratch build (#43) - 'diff': allow origin as alias for origin/<branch> - 'import': encode url from bz comment if needed (#40) - 'import': prefix bug# with rhbz in commit (#38)@@ -509,7 +513,7 @@ - new 'fetch' command - new 'list-local' command: lists packages in branch with spec file - new 'src-deps' command: wrapper of rpmbuild-order (r)deps-- 'override','waitrepo': print message before waiting+- 'override', 'waitrepo': print message before waiting - 'parallel' build: respect --no-merge - 'parallel': also accept "n" for "no" update - 'parallel': also time parallel branches dir@@ -528,8 +532,8 @@ - 'request-branches': improve --quiet help - 'request-branches': output if exists, again - 'scratch' builds now support multiple (serial) targets-- 'scratch','waitrepo': now also accept --sidetag-- 'scratch-x86_64','scratch-aarch64': add --exclude-arch to invert arch selection+- 'scratch', 'waitrepo': now also accept --sidetag+- 'scratch-x86_64', 'scratch-aarch64': add --exclude-arch to invert arch selection - 'sidetags': add --remove option - srcDeps uses depsGraphDeps from rpmbuild-order-0.4.10 - targetMaybeSidetag: add dryrun parameter@@ -743,7 +747,7 @@ ## 0.9 (2021-05-30) - 'override' --duration and run waitrepo after all overrides - new 'waitrepo' command-- 'create-review','rename-master': take no branches+- 'create-review', 'rename-master': take no branches - branchPrompt now correctly defaults to two branches - prompts now reset stdin (#20) - 'build': add --no-merge and rename --no-prompt to --merge@@ -756,7 +760,7 @@ - 'scratch': display nvr before building - 'parallel': native koji waitTask - 'sidetags': default to all user's sidetags-- 'create-review','update-review': --scratch-build TASKID option+- 'create-review', 'update-review': --scratch-build TASKID option - Koji: timeouts to handle for network connection failures - 'parallel': error if no branch given - gitFetchSilent: show git reponame instead of dirname@@ -783,7 +787,7 @@ ## 0.7.3 (2021-03-23) - 'scratch': don't get sources for pushed git build - changes/improvements to package header output-- 'merge','build': show/query diverging newer commits+- 'merge', 'build': show/query diverging newer commits - 'merge': add --no-prompt option - Build: refine the "still in testing" logic to check testing repo with prompt - Koji: offer to resubmit build on error@@ -806,7 +810,7 @@ - Bodhi overrides: error if failed; use 4 days - 'build': no longer override the last of built packages - 'review-package': new experimental command-- 'local','install': print package name when build fails+- 'local', 'install': print package name when build fails - 'copr': abort on failure - 'sort': only switch branch for dist-git - bunch of other tweaks and smaller fixes
README.md view
@@ -270,7 +270,7 @@ `$ fbrnch --version`  ```-1.8.4+1.8.5 ```  `$ fbrnch --help`
fbrnch.cabal view
@@ -1,6 +1,6 @@ cabal-version:       2.2 name:                fbrnch-version:             1.8.4+version:             1.8.5 synopsis:            Fedora packager tool to build package branches description:             fbrnch (fedora branch or "f-branch" for short) is@@ -129,7 +129,7 @@                        fedora-krb >= 0.1.1,                        fedora-releases >= 0.3,                        filepath,-                       forgejo,+                       forgejo >= 0.2,                        http-conduit,                        http-directory >= 0.1.9,                        http-query,
src/Cmd/Build.hs view
@@ -13,6 +13,7 @@ import Bodhi import Bugzilla import Branches+import Cmd.RequestBranch (gitSwitchOrRequestBranch) import Common import Common.System import Cmd.Merge@@ -79,11 +80,11 @@ buildBranch :: Maybe Package -> BuildOpts -> Package -> AnyBranch -> IO () buildBranch _ _ _ (OtherBranch _) =   error' "build only defined for release branches"-buildBranch mlastpkg opts pkg rbr@(RelBranch br) = do+buildBranch mlastpkg opts pkg (RelBranch br) = do   let moverride = buildoptOverride opts   whenJust moverride $ \days ->     when (days < 1) $ error "override duration must be positive number of days"-  gitSwitchBranch rbr+  gitSwitchOrRequestBranch Nothing br   gitMergeOrigin br   newrepo <- initialPkgRepo   tty <- isTty
src/Cmd/Parallel.hs view
@@ -24,6 +24,7 @@ import Bugzilla import Branches import Cmd.Merge (mergeBranch)+import Cmd.RequestBranch (gitSwitchOrRequestBranch) import Git import Koji import Package@@ -157,7 +158,7 @@      mergeFromBranch :: Package -> Branch -> IO ()     mergeFromBranch pkg br = do-      gitSwitchBranch (RelBranch br)+      gitSwitchOrRequestBranch (Just pkg) br       (mancestor,unmerged,from) <- mergeable pkg br mfrom       unless dryrun $         mergeBranch dryrun False False (mmerge == Just True) False pkg (mancestor,unmerged) from br
src/Cmd/RequestBranch.hs view
@@ -3,15 +3,16 @@ module Cmd.RequestBranch (   requestBranchesCmd,   requestPkgBranches,-  waitForKojiPkgBranches+  waitForKojiPkgBranches,+  gitSwitchOrRequestBranch   ) where  import Fedora.Krb (fasIdFromKrb) import Gitea.Forgejo (fedoraForge, listRepoIssues, RepoIssueOptions(..)) import Network.HTTP.Query (lookupKey')-import SimplePrompt (promptEnter)+import SimplePrompt (promptEnter, yesNo) import qualified System.Process.Typed as P-#if !MIN_VERSION_base(4,14,0)+#if !MIN_VERSION_typed_process(0,2,8) import qualified System.Exit as P #endif import System.Time.Extra (sleep)@@ -185,7 +186,7 @@           fasid <- fasIdFromKrb           -- FIXME retry on HttpExceptionRequest ... ConnectionTimeout           eissues <--            listRepoIssues fedoraForge "releng" "fedora-scm-requests" $+            listRepoIssues fedoraForge Nothing "releng" "fedora-scm-requests" $             RepoIssueOptions (Just fasid) (Just "all")           case eissues of             Left err -> error' err@@ -265,3 +266,13 @@       unless ok $ do         sleep 30         waitBuildTag buildtag++gitSwitchOrRequestBranch :: Maybe Package -> Branch -> IO ()+gitSwitchOrRequestBranch mpkg br = do+  ok <- gitSwitchBranch' False br+  unless ok $ do+    yes <- yesNo $ "Request branch for" +-+ maybe "" unPackage mpkg+    if yes+      then requestBranchesCmd False False False False Nothing False (Branches [br],[])+      else error' "Aborting: missing branch"+    gitSwitchBranch (RelBranch br)
src/Cmd/RequestRepo.hs view
@@ -97,7 +97,7 @@       fasid <- fasIdFromKrb       eissues <-         retry 2 $-        listRepoIssues fedoraForge "releng" "fedora-scm-requests" $+        listRepoIssues fedoraForge Nothing "releng" "fedora-scm-requests" $         RepoIssueOptions (Just fasid) (Just "all")       case eissues of         Left err -> error' err
src/Git.hs view
@@ -321,8 +321,8 @@     remotebranch <- do       exists <- checkIfRemoteBranchExists br       if exists-      then return True-      else gitFetchSilent False >> checkIfRemoteBranchExists br+        then return True+        else gitFetchSilent False >> checkIfRemoteBranchExists br     if not remotebranch       then do       name <- getDirectoryName