SHA256
1
0
forked from pool/MirrorCache

Compare commits

...

164 Commits

Author SHA256 Message Date
Ana Guerrero
9dafcc94ed Accepting request 1238233 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1238233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=49
2025-01-16 17:34:36 +00:00
Andrii Nikitin
52bc1465aa - Update to version 1.090:
* Add job to aggregate package download count (#552)
  * Handle APKINDEX.tar.gz (alpine repository index) as well (#554)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=123
2025-01-09 11:14:56 +00:00
Dominique Leuenberger
8cf85627b8 Accepting request 1232817 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1232817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=48
2024-12-20 14:28:37 +00:00
Andrii Nikitin
b07ac1f302 - Update to version 1.089:
* Fix presense in header x-media-version when empty (#548)
  * Add /app/efficiency reporting cache hit rate (#547)
  * Do not verify redirects of unversioned files on HEAD requests (#546)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=122
2024-12-13 11:33:23 +00:00
Ana Guerrero
5bc5066391 Accepting request 1229474 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1229474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=47
2024-12-10 22:43:23 +00:00
ca276bea6d - Update assets cache and improve update-cache.sh script
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=121
2024-12-02 18:39:39 +00:00
Andrii Nikitin
697ba36d6c - Update to version 1.088:
* Add parameter strict to /app/package
  * Use urandom for random_string
  * backstage: properly close DB connections in minion jobs
  * systemd: for background services LOG_LEVEL=error and MemoryMax
  * ci: Bump mariadb experimental version to 11.7

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=120
2024-11-28 14:30:46 +00:00
Andrii Nikitin
ae090b2367 - Update to version 1.087:
* Fix enormous query retrieving existing packages (#536)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=119
2024-11-23 12:11:43 +00:00
Andrii Nikitin
2f005f0e78 - Update to version 1.086:
* Extra filters to /app/package (#535)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=118
2024-11-22 09:47:12 +00:00
Andrii Nikitin
7e0fda1ed2 - Update to version 1.085:
* Add /app/package (#534)
  * Make sure services are started in setup.md

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=117
2024-11-21 10:38:58 +00:00
Ana Guerrero
9fcf08dc83 Accepting request 1221702 from openSUSE:infrastructure:MirrorCache
update to latest version

OBS-URL: https://build.opensuse.org/request/show/1221702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=46
2024-11-06 15:56:20 +00:00
Andrii Nikitin
ac541b88e3 - Update to version 1.084:
* systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
  * Smart handle of local symlinks

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=116
2024-11-06 08:46:20 +00:00
Andrii Nikitin
ab35751675 - Update to version 1.083:
* Escape regex in browse.html.ep (#527)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=115
2024-10-25 15:03:28 +00:00
Andrii Nikitin
58f2025a4f - Update to version 1.082:
* Redirect all local symlinks
  * Detect only symlinks with specific name during remote scan
  * fix encoding in the mirrors report when using MariaDB
  * systemd: configure MOJO_TMP_DIR=/tmp/mirrorcache
  * Set permission 750 to /etc/mirrorcache

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=114
2024-10-24 10:27:14 +00:00
Dominique Leuenberger
926bf847a3 Accepting request 1194279 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1194279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=45
2024-08-16 12:41:15 +00:00
Dominique Leuenberger
d982e64edd Accepting request 1192563 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1192563
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=44
2024-08-09 14:14:42 +00:00
Andrii Nikitin
cefeb0053c Added missing MirrorCache-1.081.obscpio
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=113
2024-08-09 10:04:16 +00:00
Andrii Nikitin
649f9247cf - Update to version 1.081:
* Add /rest/project_disk_usage route (#510)
  * fix redirect of unversioned files when accept has zsync (#509)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=112
2024-08-09 09:50:06 +00:00
Dominique Leuenberger
a8fd44172b Accepting request 1190907 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1190907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=43
2024-08-01 20:05:36 +00:00
Andrii Nikitin
b93daa9880 - Update to version 1.080:
* Add /rest/project_last_modified route (#506)
  * Display project size in human friendly format (#503)
  * Add flag mysql_enable_utf8mb4 when connectin to MariaDB (#505)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=111
2024-08-01 09:01:19 +00:00
Ana Guerrero
a49c45ec26 Accepting request 1183530 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1183530
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=42
2024-06-27 14:04:26 +00:00
Andrii Nikitin
2050dbe48f - Update to version 1.077:
* UI fix db sync timezone (#487)
  * tmpfiles: Let working and run directories be always created (#488)
  * Switch CI to 15.6 (#489)
  * Fix doubleslash in mirrors report (#490)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=108
2024-06-20 05:48:45 +00:00
Ana Guerrero
17e8055ce0 Accepting request 1177381 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1177381
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=41
2024-05-29 17:35:55 +00:00
Andrii Nikitin
aba21ae7d8 Remove exclamation mark from MirrorCache-tmpfilesd.conf
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=107
2024-05-21 15:26:22 +00:00
Andrii Nikitin
7452443d34 - Update to version 1.076:
* Fix duplicate values in x-media-version response header
  * ci: Temporarily disable systemd tests

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=106
2024-05-21 14:21:11 +00:00
Andrii Nikitin
9c79f06b0e - Update to version 1.075:
* Add url parameters for report/download
  * ui: User friendly status of DB sync for a directory
  * Add Etag and X-MEDIA-VERSION for folders
  * Add response header X-MEDIA-VERSION
  * Add Etag when rendering files
  * Prioritize scanning of projects
  * Make VPN_PREFIX a list
  * Add WorkingDir to the subtree.service
  * Add config for mojo tmpfiles
  * fix redirect for mirrorlist parameter for zsync files

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=105
2024-05-21 11:04:30 +00:00
Ana Guerrero
15379d2e02 Accepting request 1166836 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1166836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=40
2024-04-11 17:41:49 +00:00
Andrii Nikitin
748f0bc1fb - Update to version 1.074:
* Rework mirrors report generation
  * fix files mtime descrepancy when syncing over http
  * Fix metalink for small files
  * fix serving linked folders when dest changes

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=104
2024-04-04 10:35:40 +00:00
Ana Guerrero
0752c67cbb Accepting request 1158050 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1158050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=39
2024-03-15 19:30:26 +00:00
Dominique Leuenberger
40c8ea0201 Accepting request 1155881 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1155881
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=38
2024-03-07 17:30:52 +00:00
Andrii Nikitin
d044e19590 - Update to version 1.073:
* Track mirror propagation using time of job
  * Add project propagation details /app/server_rollout/:version
  * Do not show projects with negative priority
  * Show only relevant mirrors in /report/mirrors/:proj
  * fix .mirrorlist doesnt always work for repomd.xml
  * ui: add prio column to /app/project

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=103
2024-03-07 15:23:27 +00:00
Andrii Nikitin
dbaf6f6c38 - Update to version 1.072:
* ui: add /app/project/:id with propagation
  * Rework rollout to include subfolders in repo projects

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=102
2024-02-29 11:36:54 +00:00
Ana Guerrero
12d8af6bd8 Accepting request 1146794 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1146794
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=37
2024-02-15 20:01:22 +00:00
Andrii Nikitin
9b317d6e9b - Update to version 1.071:
* Add rollout tracking for iso and repo projects (#451)
  * Allow redirects in MirrorFileCheck task (#450)
  * Add timeout for hashes import job (#449)
  * Adjust regex for folder mirrorlist (#449)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=101
2024-02-08 10:09:58 +00:00
Ana Guerrero
34984a2768 Accepting request 1133015 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1133015
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=36
2023-12-15 20:47:39 +00:00
Andrii Nikitin
af910c5fbd - Update to version 1.070:
* ui: Show health on mirror card (#439)
  * fix capabilities sometimes not shown in /report/mirrors (#438)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=100
2023-12-07 09:02:42 +00:00
Andrii Nikitin
f329540c83 - Update to version 1.069:
* t: Adjust location of environ/mc/db links (#437)
  * t: Make 09-stability-02 more robust (#437)
  * t: Bump MariaDB experimental version (#437)
  * t: Switch environ to package from github repo (#437)
  * Add generation time to /report/mirrors (#436)
  * Remove postgres replication support (#435)
  * fix: mirrors with capability declaraion might disappear in /rest/server (#434)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=99
2023-11-30 09:49:10 +00:00
Ana Guerrero
e5a8ce3e2f Accepting request 1128381 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1128381
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=35
2023-11-23 20:42:41 +00:00
Andrii Nikitin
b82584c6e7 - Update to version 1.068:
* Add diagnostic job for checking presence of a file on mirrors
  * Adjust switch Digest::Zsync to separate package
  * Update regexps to handle zchunk, zstd and sha512
  * Improve link detection in the same folder
  * Add a Vary Fastly-SSL

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=98
2023-11-16 16:57:49 +00:00
Ana Guerrero
17648e744e Accepting request 1122191 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1122191
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=34
2023-11-02 19:22:14 +00:00
Andrii Nikitin
e414728667 - Update to version 1.067:
* fix handling combinations of metalink / zsync / mirrorlist / symlinks (#421)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=97
2023-10-26 07:58:17 +00:00
Andrii Nikitin
172a11b584 - Update to version 1.066:
* Centalized mirror management (#417)
  * Fix surepfluous .zsync in symlink redirect (#419)
  * t: Move container tests to from leap 15.4 to 15.5

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=96
2023-10-19 11:39:18 +00:00
Ana Guerrero
c73ed17c24 Accepting request 1115804 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1115804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=33
2023-10-05 18:05:11 +00:00
Andrii Nikitin
e84e4462af - Update to version 1.065:
* ui: Use https when applicable on mirrors report (#411)
  * ui: Show country flag in mirror report (#411)
  * ui: Tweak mirrors report (#411)
  * ui: Remove tidy warnings from openSUSE branding (#411)
  * ui: Add mirror details page (#411)
  * Remove dark theme css code for Mirrors page (#408)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=95
2023-09-28 10:15:48 +00:00
Ana Guerrero
f295319882 Accepting request 1112699 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1112699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=32
2023-09-21 20:22:49 +00:00
Andrii Nikitin
6daf7439b5 - Update to version 1.064:
* Remove must-revalidate from cache-control (#407)
  * Add handling x-metalink-limit request header (#407)
  * Add handling x-country-code request header (#407)
  * Fix escaping in regexps (#406)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=94
2023-09-14 06:52:03 +00:00
Ana Guerrero
a2805b3aff Accepting request 1109455 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1109455
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=31
2023-09-07 19:13:40 +00:00
Andrii Nikitin
be989f4476 - Update to version 1.063:
* Add cache-control options (#404)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=93
2023-08-31 07:38:01 +00:00
Dominique Leuenberger
599aab2213 Accepting request 1103287 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1103287
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=30
2023-08-10 13:34:47 +00:00
Andrii Nikitin
e5c20b9847 - Update to version 1.062:
* Add GEOIP config (#399)
  * Add url parameter LIMIT fir number of mirrors in metalink (#399)
  * Improve download report for multigroups (#398)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=92
2023-08-03 08:45:21 +00:00
Ana Guerrero
107e06bbdd Accepting request 1101013 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1101013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=29
2023-07-27 14:53:05 +00:00
Andrii Nikitin
f9cc0ee59c - Update to version 1.061:
* Add support of some parameters in ini file (#397)
  * Fix html mirror report (#394)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=91
2023-07-20 07:11:30 +00:00
Dominique Leuenberger
6457bbad3b Accepting request 1094579 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1094579
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=28
2023-06-22 21:26:15 +00:00
Andrii Nikitin
b10906fdab - Update to version 1.060:
* Tolerate DB downtime (#392)
  * Cache mirror report in case if DB or subsidiary is down (#393)
  * Fix value of METALINK_GREEDY in meta4 (#389)
  * Honor links for MIRRORCACHE_REDIRECT (#390)
  * Rework and fix /rest/stat (#387)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=90
2023-06-15 06:48:41 +00:00
Dominique Leuenberger
73fca6d6dc Accepting request 1087246 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1087246
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=27
2023-05-15 14:54:48 +00:00
Andrii Nikitin
af7b5bf8e4 - Update to version 1.059:
* Consider links when redirecting to the root (#374)
  * Add backend for mirror-counries relation (#375)
  * Use optinally default conf file in subtree service (#379)
  * rework salt test to use formula (#378)
  * ci: Switch systemd tests to github actions (#379)
  * Switch to podman from docker in systemd tests (#379)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=89
2023-05-08 13:53:12 +00:00
Dominique Leuenberger
8c775aeaca Accepting request 1080817 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1080817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=26
2023-04-20 13:15:00 +00:00
Dominique Leuenberger
ff2ba584bb Accepting request 1079051 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1079051
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=25
2023-04-13 12:10:59 +00:00
Andrii Nikitin
81683b9d26 - Update to version 1.058:
* Add Vary header into http responses (#373)
  * Add experimental feature mirrorlist for folder (#372)
  * Fix redirect on remote MirrorCache (#372)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=88
2023-04-13 10:37:58 +00:00
Andrii Nikitin
c0e4e4b944 - Update to version 1.057:
* sql: Optimize lookup for server_project (#369)
  * Avoid deadlock in minion pubsub code (#371)
  * Avoid deadlock in cleanup job deleting from folder_diff (#371)
  * ci: Switch ci container from 15.3 to 15.4 (#370)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=87
2023-04-06 06:32:41 +00:00
Dominique Leuenberger
7fc6e66b77 Accepting request 1066141 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1066141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=24
2023-02-16 15:57:08 +00:00
Andrii Nikitin
ccfc0bb7d2 - Update to version 1.056:
* Improve symlink handling when remote root references another remote root (#353)
  * ui: add content-disposition inline to render_file (#355)
  * Don't send users to Bugzilla by @AdamMajer (#357)
  * Add leap 15.5 to project list (#358)
  * Add GNOME iso to Current pattern (#356)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=86
2023-02-09 09:46:38 +00:00
Andrii Nikitin
5993446f2f - Update to version 1.055:
* Handle redirects with RootRemote (#351)
  * Add sha512 to hash (#352)
  * Do not urlencode plus character (#352)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=85
2023-02-02 12:05:21 +00:00
Andrii Nikitin
f42dc62d81 - Update to version 1.054:
* Optimise sql for erasing folder_diff_server (#347)
  * Fix huge files rendered from REDIRECT_HUGE only for metalink (#348)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=84
2023-01-27 13:17:56 +00:00
Andrii Nikitin
4406b99e9b - Update to version 1.053:
* Add MIRROR_PROVIDER to share mirror list (#343)
  * Fix REDIRECT_HUGE with local files (#345)
  * ui: Dont encode colon character in file names (#346)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=83
2023-01-26 07:27:10 +00:00
Dominique Leuenberger
d158499f7d Accepting request 1059502 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1059502
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=23
2023-01-19 15:44:11 +00:00
Andrii Nikitin
81b821cf57 - Update to version 1.052:
* Detect redirects with remote root (#336)
  * Add json parsing to FolderSync task (#337)
  * Redirect Current.iso when no nfs mount (#339)
  * Improve sorting of files in JavaScript (#340)
  * Redirect huge files (#342)
  * Secure last_id for jobs monitoring stat (#341)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=82
2023-01-12 08:46:54 +00:00
Dominique Leuenberger
5b99aeb4e1 Accepting request 1056161 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1056161
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=22
2023-01-05 14:01:37 +00:00
Andrii Nikitin
d8e29cbcf4 - Update to version 1.051:
* Add P/GLOB and REGEX parameters to file listing  (#334)
  * ui: Move mirrorlist url to size/mtime column (#335)
  * Improve url escaping in ui and redirects (#335)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=81
2022-12-29 09:24:13 +00:00
Andrii Nikitin
6617741569 - Update to version 1.050:
* Show description of top level folders for openSUSE (#333)
  * Do not access DB in local render for / (#333)
  * Improve layout for small screen size (#333)
  * Implement realpath for remote root with nfs (#331)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=80
2022-12-22 10:17:30 +00:00
Andrii Nikitin
ce7dfbc06f - Update to version 1.049:
* Unify display of current path in /browse /download and .mirrorlist (#327)
  * Show only hostname in mirrorlist url (#329)
  * Set content-type for zsync (#328)
  * Discover folders using realpath (#330)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=79
2022-12-15 12:29:24 +00:00
Andrii Nikitin
4bbadae4f3 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=78 2022-11-24 14:11:26 +00:00
Andrii Nikitin
d7bb82c30b Add temporary patch 0001-browse-metalink.patch
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=77
2022-11-24 13:58:03 +00:00
Andrii Nikitin
dfcd809ce2 - Update to version 1.048:
* Fix sorting by size in /report/download (#324)
  * Change page size in /report/download (#324)
  * Improve sorting in /browse (#324)
  * Fix map icon not shown properly in .mirrorlist (#324)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=76
2022-11-24 13:09:14 +00:00
Dominique Leuenberger
5f5c18b4f3 Accepting request 1037833 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1037833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=21
2022-11-24 11:25:37 +00:00
Andrii Nikitin
c467f6b4d3 - Update to version 1.047:
* Add /browse route to navigate folders with ajax (#322)
  * Render TOP_FOLDER with /browse if browser (#322)
  * Add ajax table for the one dimension download reports (#318)
  * Cleanup stat older than STAT_KEEP_DAYS (8) (#319)
  * Fix db password from ini file wasnt taken in all places (#323)
  * Add option for enabling Mojo Status Plugin (#318)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=75
2022-11-24 10:24:51 +00:00
Andrii Nikitin
143e3f947a - Update to version 1.046:
* Correctly render mirrorlist in browser when file is unknown
  * Allow rendering .zsync files
  * Render selected mirrors with osm in .mirrorlist

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=74
2022-11-17 06:26:18 +00:00
Andrii Nikitin
7df6ec6f4f - Add temporary patch for default database name
* 0001-Default-db-name.patch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=73
2022-11-11 10:54:30 +00:00
Andrii Nikitin
e309fc0538 - Update to version 1.045:
* Add basic support for config from ini file (#314)
  * Drop support for rsync in MIRRORCACHE_ROOT (#314)
  * Allow html tags in CUSTOM_FOOTER_MESSAGE (#314)
  * Fix os version in report generation on mariadb (#314)
  * Fix zsync file generation missing empty line after header (#314)
  * Fix download report including stats only from begin of hour (#315)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=72
2022-11-11 09:58:01 +00:00
Dominique Leuenberger
320e98258f Accepting request 1033079 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1033079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=20
2022-11-03 18:15:09 +00:00
Andrii Nikitin
2ece8c20bf - Update to version 1.044:
* Move minion stats to unauthenticated route (#313)
  * Fix occasional duplicate error in agg_download (#313)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=71
2022-10-27 13:19:56 +00:00
Andrii Nikitin
d2eae4b8e1 - Update to version 1.043:
* Add backend for download size reports (#309)
  * Add mirrors to zsync response (#312)
  * Prefer zsync over metalink responses (#312)
  * Avoid race condition when new files are discovered while mirrors are scanned (#311)
  * Fix generation of zsync hashes for big files (#310)
  * t: add manual test for local folder (#308)
  * Retry hashes import if a new file hasnt got any (#307)
  * Add trailing slash for top folders (#306) - bmwiedermann

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=70
2022-10-27 09:38:58 +00:00
Richard Brown
308dbcb064 Accepting request 1008401 from openSUSE:infrastructure:MirrorCache
Update to version 1.042

OBS-URL: https://build.opensuse.org/request/show/1008401
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=19
2022-10-07 23:23:49 +00:00
1d127b6967 Mention removing patch in changelog
0001-Avoid-by-and-ru-mrrors-for-ua-requests.patch

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=69
2022-10-06 13:09:58 +00:00
Andrii Nikitin
d4b1171146 - Update to version 1.042:
* Add support for metalink4 format (#303)
  * Add url parameter IP to simulate geo experience (#304)
  * t: Fix CI after changes in async rendering in Mojo (#303)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=68
2022-09-29 09:48:37 +00:00
Andrii Nikitin
106649f62a - Update to version 1.041:
* Fix metalink missing 'verification' tag (#302)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=67
2022-09-27 11:45:59 +00:00
Andrii Nikitin
fb78b5d534 - Update to version 1.040:
* Add parameter METALINK_GREEDY (#300)
  * Optimization: assume package managers never want to render dir (#300)
  * Fix mirror picked despite disabled in server_project table (#301)
  * Avoid by and ru mirrors for ua requests (#298)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=66
2022-09-22 14:45:32 +00:00
Dominique Leuenberger
f8cf95db8d Accepting request 1002168 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1002168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=18
2022-09-09 16:27:42 +00:00
d7730bd67a Revert autosetup change
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=65
2022-09-01 15:48:16 +00:00
5c3cdecea6 Update assets cache
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=64
2022-09-01 14:29:36 +00:00
5a19e0e52a Add temporary patch to avoid by and ru mirrors for ua requests
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=63
2022-09-01 14:12:03 +00:00
Andrii Nikitin
c58dc80107 - Update to version 1.039:
* Fix editing columns with underscore in /app (#297)
  * Fix mirror report links in header (#297)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=62
2022-08-26 13:21:03 +00:00
Andrii Nikitin
0693e331f6 - Update to version 1.038:
* Control order of projects in mirrors report (#294)
  * Include subsidiary url into region in /report/mirrors (#295)
  * Add mirror report links to header in openSUSE template (#296)
  * Add operator to mirrors report (#296)
  * Add column sponsor to server table (#296)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=61
2022-08-24 08:19:08 +00:00
Dominique Leuenberger
ce56a94e73 Accepting request 998020 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/998020
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=17
2022-08-19 15:56:13 +00:00
Andrii Nikitin
f8c8f4090d - Update to version 1.037:
* Add configuration for redirect for projects (#293)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=60
2022-08-11 15:11:25 +00:00
Andrii Nikitin
9e9160797d - Update to version 1.036:
* Fix mirrors report when missing folders (#288)
 * Tweak systemd files (#291)
 * Rework mirrors report (#290)
 * Rescan if no country hit (#292)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=59
2022-08-05 12:17:04 +00:00
Dominique Leuenberger
4deba2e745 Accepting request 985974 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/985974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=16
2022-06-30 11:18:31 +00:00
Andrii Nikitin
5b41eed05f - Update to version 1.035:
* Add project checkboxes to mirror report (#280)
  * Collect report from subsidiaries (#282)
  * Fix incorrect path in metalink for origin file (#281)
  * Add config CUSTOM_FOOTER_MESSAGE (#283)
  * CircleCI: ignore gh-pages branch (#279)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=58
2022-06-23 05:00:10 +00:00
Dominique Leuenberger
766d53255a Accepting request 982588 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/982588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=15
2022-06-14 22:33:09 +00:00
Andrii Nikitin
42fa8b9b1f - Update to version 1.034:
* Provide torrent (#278)
  * Add report for projects on mirrors (#276)
  * Fix render when metalink is optional (#277)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=57
2022-06-07 09:09:07 +00:00
Dominique Leuenberger
144ab2e055 Accepting request 979295 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/979295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=14
2022-05-26 16:44:03 +00:00
Andrii Nikitin
cb2eabf31f - Update to version 1.033:
* Add various patterns for files for which mirrors shouldnt be used (#275)
  * Fix regexp in latest_misses sql so *-primary.xml wasnt requesting scans (#275)
  * Add MyMirrors menu to openSUSE branding (#275)
  * Introduce MIRRORCACHE_VPN variable which has higher priority thant MIRRORCACHE_VPN_PREFIX (#275)
  * Allow regular users add and manage own mirrors (#274)
  * Add parameter MIRRORCACHE_MAX_PATH (#274)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=56
2022-05-19 07:18:25 +00:00
Dominique Leuenberger
99fcb70fec Accepting request 976498 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/976498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=13
2022-05-12 21:00:40 +00:00
Andrii Nikitin
b3e0bceb50 - Update to version 1.032:
* Set MIME type when rendering files (#273)
  * Optimize main sql query so it doesnt create tmp disk tables in mariadb (#272)
  * Force sql plan in job mirror_check_from_stat for mariadb (#272)
  * Add shared guard to schedule jobs to avoid deadlocks in DB (#272)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=55
2022-05-12 07:33:36 +00:00
Andrii Nikitin
63c68bc0d7 - Update to version 1.031:
* Do not search mirrors for small files with local root (#271)
  * Improve detection of https behind proxy (#271)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=54
2022-05-05 02:00:13 +00:00
Andrii Nikitin
bcf25a21a8 - Update to version 1.030:
* Local publisher origin in metalink (#267)
  * Ignore work requested by rclone (#268)
  * Use random mirror for unknown countries (#269)
  * Collect statistics for bot activity (#270)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=53
2022-04-28 04:56:09 +00:00
Andrii Nikitin
6ce3695411 Add missing dependency on perl-DateTime-HiRes
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=52
2022-04-21 02:09:32 +00:00
Andrii Nikitin
e79c1b3ff6 - Update to version 1.029:
* Add support for MariaDB (#265)
  * Fix occasional SQL error when mirrorlist for unknown country (#264)
  * Fix scheduling folder scan if were not accessed for more than month (#263)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=51
2022-04-21 01:44:36 +00:00
Dominique Leuenberger
37af2b8e44 Accepting request 967358 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/967358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=12
2022-04-06 19:52:19 +00:00
Andrii Nikitin
855d54f6bc - Update to version 1.028:
* Introduce in-application load balancing read queries to DB replica (#262)
  * Fix bigint DB error when inserting hash for big files (#262)
  * Move initialization code from before_server_start to execute earlier (#262)
  * t: Fix unstable test 03-headquarter-subsidiaries-weight1 by correcting expected values (#262)
  * spec: Fix renamed README in the spec file (#262)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=50
2022-03-30 15:16:47 +00:00
Dominique Leuenberger
4b5a67d168 Accepting request 964343 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/964343
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=11
2022-03-23 19:19:25 +00:00
Dominique Leuenberger
d3f4e78010 Accepting request 962181 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/962181
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=10
2022-03-16 19:21:33 +00:00
Andrii Nikitin
159079aaeb - Update to version 1.027:
* Fix auto-disabled mirrors may be still used for redirection (#261)
  * Increase logging level for timeouts in PEDANTIC mode (#261)
  * Serve CentOS repodata from root only (#261)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=49
2022-03-16 16:44:42 +00:00
Andrii Nikitin
929dc64401 - Update to version 1.026:
* Fix message for unknown folder render timeout (#260)
  * Support single-country subsidiaries (#259)
  * Add table server_stability (#258)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=48
2022-03-09 12:44:57 +00:00
Dominique Leuenberger
a65596e329 Accepting request 955618 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/955618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=9
2022-02-17 22:40:24 +00:00
Andrii Nikitin
ae0ff0ddb5 Fix README extention in spec
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=47
2022-02-10 11:34:34 +00:00
Andrii Nikitin
b2adbb19cf - Update to version 1.025:
* Allow headquarter be in HA subsidiary handling (#255)
  * Stat log after render (#256)
  * Add SMALL_FILE_SIZE to serve small files directly from ROOT_NFS (#254)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=46
2022-02-10 11:30:38 +00:00
Andrii Nikitin
f162efea95 Add patch to address https://github.com/openSUSE/MirrorCache/pull/253
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=45
2022-02-03 10:21:07 +00:00
Andrii Nikitin
d26c5ebca6 - Update to version 1.024:
* Allow multiple subsidiaries per region (#250)
  * Add internal timeouts for mirror checks and rendering (#249, #252)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=44
2022-02-03 09:28:27 +00:00
Dominique Leuenberger
1c52fa4f70 Accepting request 949396 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/949396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=8
2022-01-27 22:16:53 +00:00
Andrii Nikitin
66071088e7 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=43 2022-01-20 07:51:10 +00:00
Andrii Nikitin
29cb4dfe09 - Update to version 1.023:
* Add execution_time to stat table (#247)
  * Publish docs with mkdocs and github actions (#243)
  * Local render when ROOT_NFS (#246)
  * Add support for zsync hashes (#245)
  * Do not use app->static for rendering (#244)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=42
2022-01-20 07:47:23 +00:00
Dominique Leuenberger
9a29fc19f9 Accepting request 942193 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/942193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=7
2021-12-23 16:53:49 +00:00
Andrii Nikitin
b514c4f355 - Update to version 1.022:
* Add experimental route geoip to rewrite baseurl in .repo (#242)
  * Set MirrorCache useragent for scan jobs (#240)
  * Add RestartSec to backstage systemd files (#241)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=41
2021-12-16 07:16:59 +00:00
Andrii Nikitin
eac3442245 - Update to version 1.021:
* Handle timeouts in mirror_probe_projects (#238)
  * Track projects on mirrors and do skip scans accordingly (#237)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=40
2021-12-12 13:12:05 +00:00
Dominique Leuenberger
457725d38c Accepting request 937394 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/937394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=6
2021-12-09 18:45:42 +00:00
Andrii Nikitin
845198addb - Update to version 1.020:
* Do not try to find mirror outside region when ROOT_COUNTRY is set (#236)
  * Special handling unversioned media symlinks (#235)
  * Import hash create folder (#233)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=39
2021-12-09 06:28:59 +00:00
Andrii Nikitin
cec1223bfe - Update to version 1.019:
* Optimize sql for selecting mirror misses (#232)
  * Import hashes (#231)
  * Fix mirrorlist for subsidiary when in the same db with headquarter (#230)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=38
2021-12-02 05:34:54 +00:00
Andrii Nikitin
9dd58ae67e - Update to version 1.018:
* Fix occasional 404 on subtree mirrorlist
  * Fix not selecting mirrors for unknown country
  * Let Task MirrorProbe work without GeoIP database

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=37
2021-11-25 08:58:15 +00:00
Dominique Leuenberger
8f9706edaa Accepting request 932168 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/932168
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=5
2021-11-20 01:38:45 +00:00
Dominique Leuenberger
908032c10a Accepting request 930818 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/930818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=4
2021-11-11 20:38:13 +00:00
Andrii Nikitin
bb5ef9b455 - Update to version 1.017:
* Find mirror from rest of world
  * Add manual test for subsidiaries

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=36
2021-11-11 09:52:18 +00:00
Andrii Nikitin
6562d15a3e - Update to version 1.016:
* Add script for manual testing download.o.o
  * Add route /rest/scan_tree
  * Add job for recursive scan (#222)
  * Introduce variable MIRRORCACHE_TRUST_ADDR (#221)
  * Add BACKSTAGE_WORKERS parameter to scripts (#220)
  * Fix automatic mirror capability management when two capabilities are disabled for the same mirror (#219)
  * Dont try to find mirror for unversioned Debian files (#218)

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=35
2021-11-04 08:23:29 +00:00
Dominique Leuenberger
95cb943a18 Accepting request 927902 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/927902
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=3
2021-10-28 16:31:24 +00:00
Andrii Nikitin
de09c79261 - Update to version 1.015:
* Add hypnotoad service (#217)
  * Log statistics the old way
  * Add stress tests
  * Add indices on sync_requested and scan_requested to avoid deadlock
  * Allow hash.mtime differ for up to 1 min
  * Rework estimation of inactive jobs count

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=34
2021-10-28 09:01:14 +00:00
80ea9a9ce5 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=33 2021-10-21 08:31:28 +00:00
3862a92e59 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=31 2021-10-21 08:28:13 +00:00
e22a78ff9c OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=29 2021-10-21 08:25:07 +00:00
Dominique Leuenberger
fe6b4a4fd6 Accepting request 925205 from openSUSE:infrastructure:MirrorCache
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/925205
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=2
2021-10-15 21:03:43 +00:00
Andrii Nikitin
b2e1bf3daa - Update to version 1.012:
* Rework mirror scan (#211)
  * Fix root redirect in subtree mirrorlist
  * Show only folders from TOP_FOLDERS variable if defined
  * Fix detecting vpn when ipv6 is enabled

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=27
2021-10-14 10:21:47 +00:00
Andrii Nikitin
305849464a - Update to version 1.011:
* Improve openSUSE theme
  * Fix sql error when mirror has no files
  * Introduce hasall mirror capability
  * Change behavior filtering mirrors based on supported IP version
  * Fix mirrorlist for the same region
  * Schedule scan even when Geo for IP is not detected
  * Improve detection of ipv4
  * Fix syntax error after perl upgrade
  * Properly redirect for symlinks in subtree

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=26
2021-10-07 07:04:17 +00:00
Dominique Leuenberger
d10e04ed62 Accepting request 922523 from openSUSE:infrastructure:MirrorCache
MirrorCache reached version 1.010 - it is about time to have it in Factory :)

OBS-URL: https://build.opensuse.org/request/show/922523
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/MirrorCache?expand=0&rev=1
2021-10-01 20:29:07 +00:00
6ea1c68556 OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=24 2021-10-01 08:30:17 +00:00
bdf128673f Update changes entry: removed duplicates and improved wording
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=23
2021-09-30 13:15:11 +00:00
Andrii Nikitin
21c9cff762 Accepting request 922308 from home:eroca:MirrorCache
Remove assets cache, we have cache.tar.xz for that

OBS-URL: https://build.opensuse.org/request/show/922308
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=22
2021-09-30 08:19:03 +00:00
Andrii Nikitin
858afb78d7 - Update to version 1.010:
* Add openSUSE design theme
  * Fix parantheses placement, remove unneeded param
  * Create service symlink rcmirrorcache-subtree
  * Fix subtree to work with symlinks
  * dist: package mirrorcache-subtree.service (#199)
  * Add proper handling of local symlinks
  * Erase info about folder on a mirror if it cannot be accessed
  * Always render files from disk for local root
  * Add MIRRORCACHE_PROXY_URL variable
  * Add subtree feature

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=21
2021-09-30 07:50:06 +00:00
7cb329046f Update version number
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=20
2021-09-23 07:39:28 +00:00
aa1945c906 - Update to version 1.009:
* Add proper handling of local symlinks
  * Erase info about folder on a mirror if it cannot be accessed

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=19
2021-09-23 07:35:32 +00:00
Andrii Nikitin
f9006fd2e1 Accepting request 919463 from home:eroca:MirrorCache2
- Update to version 1.008
- Improve packaging, the conf.env is now in /etc/mirrorcache/
  * Add script to generate and update cache.tar.xz

OBS-URL: https://build.opensuse.org/request/show/919463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=18
2021-09-16 08:52:52 +00:00
7818415768 Accepting request 918012 from home:eroca:MirrorCache
- Update to version 1.007

- Remove 0001-Fix-one-more-typo-179.patch - included in 1.007

OBS-URL: https://build.opensuse.org/request/show/918012
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=16
2021-09-14 09:53:03 +00:00
56ae58c1e1 - Apply patch 0001-Fix-one-more-typo-179.patch
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=14
2021-08-16 13:15:18 +00:00
36f728d411 - add 0001-Fix-one-more-typo-179.patch
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=13
2021-08-16 12:59:50 +00:00
edc5e22392 Accepting request 911818 from home:eroca:branches:MirrorCache
* Switch to manual in _service for the sources (to be able to submit to factory)
* Add changesgenerate service so that `osc service manualrun`
  - gets new sources, extracts everything from dist/rpm
  - create a changes file entry (still needs to be checked as it puts changes from previous releases)
* Add complete changelog

OBS-URL: https://build.opensuse.org/request/show/911818
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=12
2021-08-12 12:43:25 +00:00
64df5ac930 trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=11
2021-08-05 07:38:01 +00:00
0b75111419 trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=10
2021-08-05 07:31:06 +00:00
Andrii Nikitin
189838c391 trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=9
2021-07-28 13:26:58 +00:00
Andrii Nikitin
957d92877d trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=8
2021-07-23 13:40:08 +00:00
Andrii Nikitin
8aee3fae44 trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=7
2021-07-22 05:00:29 +00:00
Andrii Nikitin
2be13da859 trigger service run
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=6
2021-07-15 06:00:37 +00:00
Andrii Nikitin
c190d4d8b9 1.001 2021-07-09
- Fix redirect to https when mirror doesnt have it
  - Verify size on mirrors for files with -Current suffix
  - t: Fix test redirect from landing page when TOP_FOLDERS is set

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=5
2021-07-09 13:55:49 +00:00
Andrii Nikitin
bb45628c9e 1.0 2021-07-08
- Fix render of branding when TOP_FOLDERS is set.
  - Add 'My Statistics' menu item with individual statistics for IP.
  - Internals: use stat table for scheduling jobs.
  - Internals: fix unsafe usage of Datamodule in delayed rendering.

M    MirrorCache.changes

Diff for working copy: .
Index: MirrorCache.changes
===================================================================

--- MirrorCache.changes	(revision 3)
+++ MirrorCache.changes	(working copy)
@@ -1,3 +1,53 @@
+1.0  2021-07-08
+  - Fix render of branding when TOP_FOLDERS is set.
+  - Add 'My Statistics' menu item with individual statistics for IP.
+  - Internals: use stat table for scheduling jobs.
+  - Internals: fix unsafe usage of Datamodule in delayed rendering.
+
+0.9  2021-07-01
+ - ui: Add branding capability and footer info
+ - ui: Render landing page if MIRRORCACHE_TOP_FOLDERS is set
+ - Truncate country code to two letters
+ - Log trailing slash in stat
+ - Fix double stats when no mirror in country
+ - t: Replace repo in docker to openSUSE:infrastructure
+ - salt: switch test to use 15.3
+
+0.8  2021-06-24
+  - Add mirrorlist page, reference it in file listing 'Metadata' column;
+  - Do not require /download prefix when MIRRORCACHE_TOP_FOLDERS is configured;
+  - Fix error "time_bad_sig: Return_to signature is not valid." during openid login by setting secret in Mojo app;
+  - Performance improvements in estimating load on background jobs;
+  - Performance improvements in stat calculation;
+  - [ui] Move mirror statistics to folder status form;
+  - Cleanup audit events, add DB index for that;
+  - Tweak job creating metadata (folder_hashes_create);
+  - Schedule scan when main server serves as a mirror;
+  - Improve handling symlinked files in rsync root;
+  - rpm spec improvements.
+
+0.7  2021-06-03
+  - [ui] Change /logout only on POST message, (before it was on GET).
+  - [ui] Tweak html in file listing.
+  - [ui] Use natural sort in file listing (case insensitive, foo-9 before foo-10).
+  - [internal] Significantly reduce time of guards inside some permanent tasks.
+  - [internal] (Experimental) new task FolderHashesCreate in new queue hashes to collect files metadata and store in db.
+  - [tests] Switch test containers to leap 15.3
+
+0.6  2021-05-27
+  - an audit logs page for admins
+  - new config MIRRORCACHE_AUTH_URL, fake auth for testing
+  - new permanent job mirror_check_from_stat
+  - tests: switch to new reworked environ framework
+
+0.5  2021-04-30
+  - Obsolete MIRRORCACHE_FALLBACK_REDIRECT in favor of MIRRORCACHE_REDIRECT
+  - Adjust github address to openSUSE
+
+0.4  2021-04-29
+  - Collect file size from origin if nginx with indexing
+  - Add favicon and initial version of logo
+
 0.3  2021-04-24
   - Remove column db_sync_for_country from /app/folder

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=4
2021-07-08 08:58:22 +00:00
Andrii Nikitin
03a7e993c8 0.9 2021-07-01
- ui: Add branding capability and footer info
 - ui: Render landing page if MIRRORCACHE_TOP_FOLDERS is set
 - Truncate country code to two letters
 - Log trailing slash in stat
 - Fix double stats when no mirror in country
 - t: Replace repo in docker to openSUSE:infrastructure
 - salt: switch test to use 15.3

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=3
2021-07-01 05:42:36 +00:00
Andrii Nikitin
d1af4fefe4 0.8 2021-06-24
- Add mirrorlist page, reference it in file listing 'Metadata' column;
  - Do not require /download prefix when MIRRORCACHE_TOP_FOLDERS is configured;
  - Fix error "time_bad_sig: Return_to signature is not valid." during openid login by setting secret in Mojo app;
  - Performance improvements in estimating load on background jobs;
  - Performance improvements in stat calculation;
  - [ui] Move mirror statistics to folder status form;
  - Cleanup audit events, add DB index for that;
  - Tweak job creating metadata (folder_hashes_create);
  - Schedule scan when main server serves as a mirror;
  - Improve handling symlinked files in rsync root;
  - rpm spec improvements.

OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=2
2021-06-24 07:29:04 +00:00
9c4f8402dd Accepting request 898516 from home:andriinikitin:MirrorCache
Time to do the switch

OBS-URL: https://build.opensuse.org/request/show/898516
OBS-URL: https://build.opensuse.org/package/show/openSUSE:infrastructure:MirrorCache/MirrorCache?expand=0&rev=1
2021-06-08 17:23:24 +00:00
9 changed files with 114 additions and 26 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d456dc5eec645a4322b2d1cce01fb4f41795e3afe36bdc74b94ecc71cc30381b
size 1213452

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6879daa0f4ae5732bd00b2bbb34e57aa249075c0e3c455e9057342583c64aeb6
size 1223692

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e4848e2876a300d4ce02af771e63187b222aa679a6c9ef83800ab9541114eb7
size 1305612

View File

@ -1,4 +1,4 @@
# Type Path Mode UID GID Age Argument
d /var/lib/mirrorcache 0750 mirrorcache mirrorcache - -
d /var/lib/mirrorcache/tmp 0750 mirrorcache mirrorcache 2h
d /run/mirrorcache 0750 mirrorcache mirrorcache - -
r /tmp/mojo.tmp.* - mirrorcache mirrorcache 8h

View File

@ -1,3 +1,90 @@
-------------------------------------------------------------------
Thu Jan 09 11:12:48 UTC 2025 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.090:
* Add job to aggregate package download count (#552)
* Handle APKINDEX.tar.gz (alpine repository index) as well (#554)
-------------------------------------------------------------------
Fri Dec 13 11:29:33 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.089:
* Fix presense in header x-media-version when empty (#548)
* Add /app/efficiency reporting cache hit rate (#547)
* Do not verify redirects of unversioned files on HEAD requests (#546)
-------------------------------------------------------------------
Mon Dec 2 18:37:12 UTC 2024 - Elisei Roca <eroca@suse.com>
- Update assets cache and improve update-cache.sh script
-------------------------------------------------------------------
Thu Nov 28 14:27:21 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.088:
* Add parameter strict to /app/package
* Use urandom for random_string
* backstage: properly close DB connections in minion jobs
* systemd: for background services LOG_LEVEL=error and MemoryMax
* ci: Bump mariadb experimental version to 11.7
-------------------------------------------------------------------
Sat Nov 23 12:10:19 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.087:
* Fix enormous query retrieving existing packages (#536)
-------------------------------------------------------------------
Fri Nov 22 09:46:10 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.086:
* Extra filters to /app/package (#535)
-------------------------------------------------------------------
Thu Nov 21 10:36:04 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.085:
* Add /app/package (#534)
* Make sure services are started in setup.md
-------------------------------------------------------------------
Wed Nov 06 08:45:02 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.084:
* systemd: MOJO_TMPDIR=/var/lib/mirrorcache/tmp
* Smart handle of local symlinks
-------------------------------------------------------------------
Fri Oct 25 15:02:11 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.083:
* Escape regex in browse.html.ep (#527)
-------------------------------------------------------------------
Thu Oct 24 10:25:03 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.082:
* Redirect all local symlinks
* Detect only symlinks with specific name during remote scan
* fix encoding in the mirrors report when using MariaDB
* systemd: configure MOJO_TMP_DIR=/tmp/mirrorcache
* Set permission 750 to /etc/mirrorcache
-------------------------------------------------------------------
Fri Aug 09 09:48:52 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.081:
* Add /rest/project_disk_usage route (#510)
* fix redirect of unversioned files when accept has zsync (#509)
-------------------------------------------------------------------
Thu Aug 01 08:59:31 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>
- Update to version 1.080:
* Add /rest/project_last_modified route (#506)
* Display project size in human friendly format (#503)
* Add flag mysql_enable_utf8mb4 when connectin to MariaDB (#505)
-------------------------------------------------------------------
Thu Jul 25 07:40:38 UTC 2024 - Andrii Nikitin <andrii.nikitin@suse.com>

View File

@ -1,4 +1,4 @@
name: MirrorCache
version: 1.079
mtime: 1721830458
commit: 1fd848f467a79f3c2697593716894e3ee3ea7238
version: 1.090
mtime: 1736352970
commit: 77f4894d80fb34eaec53d78dc080068829be1d0f

View File

@ -22,7 +22,7 @@
%define main_requires %{assetpack_requires} perl(Carp) perl(DBD::Pg) >= 3.7.4 perl(DBI) >= 1.632 perl(DBIx::Class) >= 0.082801 perl(DBIx::Class::DynamicDefault) perl(DateTime) perl(Encode) perl(Time::Piece) perl(Time::Seconds) perl(Time::ParseDate) perl(DateTime::Format::Pg) perl(Exporter) perl(File::Basename) perl(LWP::UserAgent) perl(Mojo::Base) perl(Mojo::ByteStream) perl(Mojo::IOLoop) perl(Mojo::JSON) perl(Mojo::Pg) perl(Mojo::URL) perl(Mojo::Util) perl(Mojolicious::Commands) perl(Mojolicious::Plugin) perl(Mojolicious::Plugin::RenderFile) perl(Mojolicious::Static) perl(Net::OpenID::Consumer) perl(POSIX) perl(Sort::Versions) perl(URI::Escape) perl(XML::Writer) perl(base) perl(constant) perl(diagnostics) perl(strict) perl(warnings) shadow rubygem(sass) perl(Net::DNS) perl(LWP::Protocol::https) perl(Digest::SHA) perl(Config::IniFiles)
%define build_requires %{assetpack_requires} rubygem(sass) tidy sysuser-shadow sysuser-tools
Name: MirrorCache
Version: 1.079
Version: 1.090
Release: 0
Summary: WebApp to redirect and manage mirrors
License: GPL-2.0-or-later

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:236566155516ce58068c2d22421d89995d8d6f0315020dc0da18216b5aaf0654
size 1017877
oid sha256:d4878b0b4be51b433961c07cd1be45efd870b36caf9103a1abe6513c9602b876
size 1338126

View File

@ -1,20 +1,24 @@
#! /bin/sh
#!/usr/bin/bash
# requirements:
# bzip2 cpio perl-IO-Socket-SSL perl-Mojolicious
# perl-Mojolicious-Plugin-AssetPack ruby3.3-rubygem-sass
set -e
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
osc up
rm -f _service\:*
rm -f *.tar *.cpio
osc service lr
# special call for tar buildtime service
osc service lr tar
SD=$PWD
cd MirrorCache
tools/generate-packed-assets
tar cvjf ../cache.tar.xz assets/cache assets/assetpack.db
mkdir -p MirrorCache-update-cache
rm -rf MirrorCache-update-cache/*
pushd MirrorCache-update-cache
cd "$SD"
osc up
cpio -id < ../MirrorCache-*.obscpio
pushd MirrorCache-*
./tools/generate-packed-assets
tar cvjf ../../cache.tar.xz assets/cache assets/assetpack.db
popd
popd
rm -rf MirrorCache-update-cache/*