Compare commits

..

2 Commits

Author SHA1 Message Date
unkinben f40675f3d2 Merge pull request 'feat: add fedora index files' (#3) from benvin/fedora_indexes into master
Reviewed-on: #3
2026-01-10 17:02:58 +11:00
unkinben b54e6c3e0c feat: add fedora index files
- ensure files matching xml.zck and xml.zst are marked as index files
2026-01-10 17:01:39 +11:00
3 changed files with 1 additions and 7 deletions
-4
View File
@@ -23,10 +23,6 @@ RUN wget -O /app/uv-x86_64-unknown-linux-musl.tar.gz https://github.com/astral-s
chmod +x /usr/local/bin/uv && \ chmod +x /usr/local/bin/uv && \
uv --version uv --version
# Copy CA bundle from host
COPY ca-bundle.pem /app/ca-bundle.pem
RUN chmod 644 /app/ca-bundle.pem
# Create non-root user first # Create non-root user first
RUN adduser -D -s /bin/sh appuser && \ RUN adduser -D -s /bin/sh appuser && \
chown -R appuser:appuser /app chown -R appuser:appuser /app
-2
View File
@@ -26,8 +26,6 @@ format:
uv run ruff format . uv run ruff format .
run: run:
uv venv --python 3.11 && \
source .venv/bin/activate && \
uv run python -m src.artifactapi.main uv run python -m src.artifactapi.main
docker-up: docker-up:
+1 -1
View File
@@ -24,7 +24,7 @@ class RedisCache:
or file_path.endswith("Packages.gz") or file_path.endswith("Packages.gz")
or file_path.endswith("repomd.xml") or file_path.endswith("repomd.xml")
or "repodata/" in file_path or "repodata/" in file_path
and file_path.endswith((".xml", ".xml.gz", ".xml.bz2", ".xml.xz")) and file_path.endswith((".xml", ".xml.gz", ".xml.bz2", ".xml.xz", ".xml.zck", ".xml.zst"))
) )
def get_index_cache_key(self, remote_name: str, path: str) -> str: def get_index_cache_key(self, remote_name: str, path: str) -> str: