74 Commits

Author SHA1 Message Date
Christoph Reiter
9bdd3d22b1 Expose matched CVEs on the outofdate and the package pages 2024-03-24 11:34:00 +01:00
Christoph Reiter
1c1d538324 pkgextra: get rid of internal flag 2024-01-24 08:36:46 +01:00
Christoph Reiter
76d4b4d39b Run pyupgrade
upgrade everything to 3.10+
2023-11-01 19:28:08 +01:00
Christoph Reiter
39b6214728 licenses: stop deduplicating licenses and sorting them
just output them as they are in the file.
2023-10-06 19:09:58 +02:00
Christoph Reiter
f2ed76293f Rename pkgmeta to pkgextra
So things are consistent
2023-09-17 18:59:12 +02:00
Christoph Reiter
9842240ba7 Revert "Hide the version epoch in most places"
This reverts commit 05a8bba0a8405b4521015ab35a4259fe176fa642.
2023-08-18 08:05:43 +02:00
Christoph Reiter
05a8bba0a8 Hide the version epoch in most places
It's only relevant for schema changes and downgrades and only
useful for deciding if a version is newer, which website users
rarely need to do.

Let's just hide it by default. It's still part of the package file name
if really needed.
2023-08-18 07:21:34 +02:00
Christoph Reiter
7bd958cca3 Link to pypi if we know the pypi name 2023-07-02 14:45:22 +02:00
Christoph Reiter
78a636b3c8 Always prefer Arch versions over AUR and Cygwin
AUR contains dev versions we don't care about and cywin
sometimes uses a different versioning scheme.

Only if there is no matching Arch package consider the other ones
2023-05-12 21:35:11 +02:00
Christoph Reiter
d006089bdd queue: filter on build types instead of repos
previously the src build types were merged with the repos
they were connected with, so msys-src with msys etc.

Usually when filtering for "mingw64" one doesn't want to know the
build status of "mingw-src", so skip all that and just leak the
build types to the frontend as is.
2023-05-06 11:53:17 +02:00
Christoph Reiter
5569252cee Generalize external references and handle AUR separately
Remove all cygwin/arch specific code from the core models to make
it easier to add more references.
2023-04-11 20:02:55 +02:00
Christoph Reiter
5bc7ddc3c3 Update deps 2023-03-24 13:50:56 +01:00
Christoph Reiter
9faa93f697 Try to avoid google crawling the search
There is no point, every page is accessible without the search.
2023-01-22 11:48:12 +01:00
Christoph Reiter
eeac72400b queue: show active cycles 2023-01-20 09:57:12 +01:00
Christoph Reiter
6a1303be83 Partly revert 9c609e66d413013
we still want to link to the base package in the queue if possible
2023-01-06 09:19:32 +01:00
Christoph Reiter
e66f96801a Remove package_name() function
We now parse/split all PKGBUILD fields properly, so all package names
that end up in the templates should be valid already.
2023-01-06 08:10:45 +01:00
Christoph Reiter
4a65e2d54b Be more explicit about showing virtual packages
Up until now we would show a list of packages and providing
packages. That's confusing when you don't scroll down and not
really obvious.

Instead if it's a virtual package show a simple page listing
the providing packages.

And in case a package of that name exists, show the other packages
providing the same name inline ("Provided By")
2023-01-06 07:59:29 +01:00
Christoph Reiter
9c609e66d4 queue: don't use the srcpkg to display information
Instead just use the srcinfo and the packages. In case a package moves between bases
it would look up the old srcpkg and display outdated names.

This is a leftover from when we had no srcinfo data.
2023-01-05 19:24:05 +01:00
Christoph Reiter
9c6be6c7e3 Switch to new mapping format
This adds the following things:

* the mapping data is now sourced from the package repositories
* cygwin mapping works too (for example see "msys2-runtime")
* packages can be marked internal so they are never linked
  to arch or cygwin (for example see "base")
2022-12-29 13:53:29 +01:00
Christoph Reiter
0aaa362d5a Remove skipped packages
With multiple sources, including cygwin, this doesn't make much sense.
We can mark some packages as internal in the future.
2022-12-29 06:49:39 +01:00
Christoph Reiter
256514bc41 Less guessing with the arch name mapping
Instead of doing regex and using the extracted package name, just
use the real pkgbase everywhere. This might mean more mappings are needed,
but it's more clear what it changes.

The next step is to move the mapping into the packaging repos.
2022-12-29 06:05:39 +01:00
Christoph Reiter
7b09145e9a Handle the new build status format
Changed in https://github.com/msys2/msys2-autobuild/commit/307799fd271fdfeeffec30c8
2022-12-27 16:19:21 +01:00
Christoph Reiter
7b399e56bc Show base groups instead of groups for base packages 2022-12-26 16:57:02 +01:00
Christoph Reiter
e0b0ae48da Add a base group collection
This is conceptionally similar to a pkgbase, but for groups.
Something like this doesn't really exist on the PKGBUILD level,
but end users can't really work with pkgbase with pacman either,
so for them that doesn't matter.

It still gives the end user the same structure as with packages,
there is a base thing that has multiple instances for each environment,
and searching might be a bit easier.

The UX could be improved, but the basics are there at least.

Fixes #47
2022-12-26 12:00:45 +01:00
Christoph Reiter
290ee4440d Rename group -> groups
my initial naming wasn't the best. base/package remains, but that is
trickier to change

I mainly wanted to see how to handle renames with fastapi here
2022-12-26 12:00:45 +01:00
Christoph Reiter
d1e53f7453 Update Python deps
mypy now defaults to no_implicit_optional=True, so some adjustments
are needed there
2022-11-17 18:10:02 +01:00
Christoph Reiter
9ea74da0eb queue: show the potential build types when no build status is known yet 2022-09-06 08:50:18 +02:00
Christoph Reiter
38a613d628 queue: mark all finished packages green
Previously only packages which could be added to the repo were green,
now all that successfully built are green. Makes it easier to see
where things are stuck or where manual intervention is needed.
2022-09-05 09:38:05 +02:00
Christoph Reiter
aca09d2bce outofdate: add a repo filter
So one can look at only msys packages that need updates for example
2022-08-08 18:46:14 +02:00
Christoph Reiter
08e58bb9b8 Don't error out on packages without a license
They would fail to show with a 500
2022-04-17 22:12:35 +02:00
Christoph Reiter
5beb2670f5 Split up the package list and package details logic
The change in bb4b9967260 broke the package details view since
it defaults the repo filter to mingw64, so clang64 links are broken now.

This now only applies the default for the list.

To avoid mixing things up in the future split up the endpoint logic.

Fixes #55
2022-04-08 06:15:43 +02:00
Christoph Reiter
bb4b996726 package index: remove the "all" option and default to some repo
The page is getting very large and showing all packages for all
repos shouldn't be a common use case.

Let's filter always and default to mingw64
2022-04-01 17:45:16 +02:00
Christoph Reiter
f228438468 Update Python deps
jinja dropped a few deprecated functions
2022-04-01 14:07:48 +02:00
Christoph Reiter
1e7b8167aa Add links for spdx licenses
Do some very basic parsing of spdx expressions and add links
to the respective license pages.

Multiple licenses in a package are combined with "OR".
2022-01-15 18:42:09 +01:00
Christoph Reiter
cd73104ed3 queue: when a package is new link to the existing matching pkgbase
We fell back to the github source before, but it's confusing that different
entries link to different things depending on their state.
2022-01-15 18:39:11 +01:00
Christoph Reiter
5913b1f98b Don't mark packages for removal if they still have rdeps
Not perfect, but a start
2022-01-06 16:10:23 +01:00
Johannes Schindelin
35055a91c7 Rephrase funny-sounding message 2021-10-15 16:05:20 +02:00
Christoph Reiter
3f0bc702ae outofdate: add option to filter based on transitive deps of a set of packages
In case you want to update the dependency chain of a particular package, or set of
packages.
2021-08-16 20:36:53 +02:00
Christoph Reiter
03c84d8e7b packages: add a repo filter option 2021-08-15 17:41:09 +02:00
Christoph Reiter
829493e5ed packages: show the real package always first
mingw-w64-x86_64-qt5-connectivity is provided by qt5, but we want
the real mingw-w64-x86_64-qt5-connectivity at the top

Fixes #45
2021-08-15 17:30:20 +02:00
Christoph Reiter
27f423b5dc search: sort by score
Sort by size of the matches compared to the package names

Fixes #46
2021-08-15 17:21:57 +02:00
Christoph Reiter
3e694dee87 Add a mirror stats page 2021-06-30 17:29:20 +02:00
Christoph Reiter
2e001c28e2 queue: fix some build status missing
in case there was an update and a new package for a srcpkg we only
used the repo list for the updated ones. We need to merge them though.
2021-06-29 21:38:45 +02:00
Christoph Reiter
a6117d7d2c queue: fix missing build status for updates packages
we need to look at all srcinfos now so we get a complete list of
pending build types.

They get used to filter the build status now, so we need all of them.
2021-06-25 08:04:55 +02:00
Christoph Reiter
0def453150 Filter out the build status for package that no longer need to be built
This happens after packages get updated and autobuild hasn't run again.
The build status json will still contain old data which we need to filter
out based on the content of the repo.
2021-06-24 07:57:47 +02:00
Christoph Reiter
e5d0b283eb updates: add a repo filter like for the pending packages
Fixes #37
2021-06-13 18:18:25 +02:00
Christoph Reiter
b0c4e5d831 lower the priority of manual builds
Either all builds are manual, or just one in case it's not that important
2021-05-14 09:50:50 +02:00
Christoph Reiter
9d0227606e queue: add option to filter by repository 2021-05-14 08:30:00 +02:00
Christoph Reiter
331cda1534 Support multiple URLs for the build status 2021-05-01 16:19:10 +02:00
Christoph Reiter
8f6d7fc851 queue: merge version updates and new packages into one entry 2021-04-30 07:41:42 +02:00