Test index creation for index_v1.
This is based on test_make_v0 and uses the existing
org.dyndns.fules.ck test app.
The metadata was imported from fdroiddata.
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This got removed with commit f0eedc3ade
which results in issues with clients using index v1.
These clients may end up offering the wrong arch for the device.
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
- use OpenJDK21
- Install python-oscrypto
- Enable weak ciphers when running tests
- Add Androguard dependency
- Skip gpg test on Fedora
- Ensure zlib not zlib-ng is used on Fedora
There are a couple of active apps that use `RepoType: hg`, but they are
both no longer developed. `setup_vcs()` is called before the check whether
the build actually needs to run. So it needs to return a `vcs()` instance
or it will try to run the build again.
follow up from !1662
This disables pycodestyle's "W291 trailing whitespace" because these tests
need a trailing whitespace in the YAML string to represent null. Black
handles this fine.
Everywhere else, just plain data structures are used, like dict, list, etc.
Plus even the code that accesses these namedtuples is not using the features
of the namedtuple.
These are steps towards refactoring the code so that index-v2 is the
internal data structure of fdroid update. Then ultimately, we'll be
able to remove the whole convert_version() function and streamline
other parts of the code. Then the data structure conversions will
only need to happen in the code that generates the old index files.
Back in 2015, 49549f4ca attempted to throw an error if a username was added
to a git-svn `Repo:` URL. But it tested the function self.repotype itself
rather than executing it. This fixes that and adds a test.
Remove all apt package sources configuration files before setting up the
standard set of sources (trixie, trixie-updates, trixie-backports,
trixie-security) to make sure that only those are present by default.
Since trixie debian.sources is recommended instead of sources.list. See
https://wiki.debian.org/SourcesList
Fixes the following warning on apt-get update:
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/debian.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/debian.sources:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/debian.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/debian.sources:1