commit MirrorCache for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package MirrorCache for openSUSE:Factory checked in at 2024-08-16 14:41:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/MirrorCache (Old) and /work/SRC/openSUSE:Factory/.MirrorCache.new.2698 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "MirrorCache" Fri Aug 16 14:41:15 2024 rev:45 rq:1194279 version:1.081 Changes: -------- --- /work/SRC/openSUSE:Factory/MirrorCache/MirrorCache.changes 2024-08-09 16:15:09.916186958 +0200 +++ /work/SRC/openSUSE:Factory/.MirrorCache.new.2698/MirrorCache.changes 2024-08-16 14:41:15.955282588 +0200 @@ -1,0 +2,7 @@ +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) + +------------------------------------------------------------------- Old: ---- MirrorCache-1.080.obscpio New: ---- MirrorCache-1.081.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ MirrorCache.spec ++++++ --- /var/tmp/diff_new_pack.k6Ajxe/_old 2024-08-16 14:41:16.667312357 +0200 +++ /var/tmp/diff_new_pack.k6Ajxe/_new 2024-08-16 14:41:16.671312524 +0200 @@ -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.080 +Version: 1.081 Release: 0 Summary: WebApp to redirect and manage mirrors License: GPL-2.0-or-later ++++++ MirrorCache-1.080.obscpio -> MirrorCache-1.081.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/lib/MirrorCache/WebAPI/Controller/Rest/Project.pm new/MirrorCache-1.081/lib/MirrorCache/WebAPI/Controller/Rest/Project.pm --- old/MirrorCache-1.080/lib/MirrorCache/WebAPI/Controller/Rest/Project.pm 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/lib/MirrorCache/WebAPI/Controller/Rest/Project.pm 2024-08-09 11:21:53.000000000 +0200 @@ -40,7 +40,20 @@ my $name = $self->param("project"); my $prj = $self->schema->resultset('Project')->find({ name => $name }); + return $self->render(text => 'Not found', status => 404) unless $prj && $prj->id; + return $self->render(text => 'No data', status => 201) unless $prj->lm; $self->render(text => $prj->lm, status => 200); } +sub disk_usage { + my ($self) = @_; + + my $name = $self->param("project"); + my $prj = $self->schema->resultset('Project')->find({ name => $name }); + + return $self->render(text => 'Not found', status => 404) unless $prj && $prj->id; + return $self->render(text => 'No data', status => 201) unless defined $prj->size; + $self->render(text => $prj->size, status => 200); +} + 1; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/lib/MirrorCache/WebAPI/Plugin/Dir.pm new/MirrorCache-1.081/lib/MirrorCache/WebAPI/Plugin/Dir.pm --- old/MirrorCache-1.080/lib/MirrorCache/WebAPI/Plugin/Dir.pm 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/lib/MirrorCache/WebAPI/Plugin/Dir.pm 2024-08-09 11:21:53.000000000 +0200 @@ -781,7 +781,7 @@ return undef unless ($small_file_size && ($root_nfs || !$root->is_remote)); $dm->_init_path; $c->log->error('DIR::render_small2') if $MCDEBUG; - return undef if ($dm->metalink && !$dm->accept_all) || ($dm->meta4 && !$dm->accept_all) || $dm->mirrorlist || $dm->zsync; + return undef if ($dm->metalink && !$dm->accept_all) || ($dm->meta4 && !$dm->accept_all) || $dm->mirrorlist || ($dm->zsync && !$dm->accept_all); $c->log->error('DIR::render_small3') if $MCDEBUG; my ($path, undef) = $dm->path; my $full; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/lib/MirrorCache/WebAPI.pm new/MirrorCache-1.081/lib/MirrorCache/WebAPI.pm --- old/MirrorCache-1.080/lib/MirrorCache/WebAPI.pm 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/lib/MirrorCache/WebAPI.pm 2024-08-09 11:21:53.000000000 +0200 @@ -183,6 +183,7 @@ $rest_r->get('/project/:id')->to('table#list', table => 'Project'); $rest_r->get('/project/propagation/:project_id')->to('project_propagation#list'); $rest_r->get('/project_last_modified')->to('project#last_modified'); + $rest_r->get('/project_disk_usage')->to('project#disk_usage'); $rest_r->get('/rollout_server/:version')->to('rollout_server#list'); my $rest_operator_auth; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/t/environ/01-smoke.sh new/MirrorCache-1.081/t/environ/01-smoke.sh --- old/MirrorCache-1.080/t/environ/01-smoke.sh 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/t/environ/01-smoke.sh 2024-08-09 11:21:53.000000000 +0200 @@ -135,7 +135,6 @@ $mc/backstage/shoot -q hashes echo check zsync works -# perl-Inline-C might be missing if it doesnt $mc/curl -H "Accept: */*, application/metalink+xml, application/x-zsync" /download/folder1/file9.1.dat \ | grep -C 20 "URL: http://$($ap7/print_address)/folder1/file9.1.dat" \ | grep -C 20 "URL: http://$($ap8/print_address)/folder1/file9.1.dat" \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/t/environ/03-headquarter-subsidiaries.sh new/MirrorCache-1.081/t/environ/03-headquarter-subsidiaries.sh --- old/MirrorCache-1.080/t/environ/03-headquarter-subsidiaries.sh 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/t/environ/03-headquarter-subsidiaries.sh 2024-08-09 11:21:53.000000000 +0200 @@ -56,6 +56,9 @@ curl --interface $eu_interface -Is http://$hq_address/ | grep '200 OK' curl --interface $eu_interface -Is http://$hq_address/download/folder1/media.1/media | grep '200 OK' +mc9/curl -I -H 'Accept: */*, application/metalink+xml' /folder1/media.1/media | grep '200 OK' +mc9/curl -I -H 'Accept: */*, application/metalink+xml, application/x-zsync' /folder1/media.1/media | grep '200 OK' + echo check redirection from headquarter curl --interface $na_interface -Is http://$hq_address/download/folder1/filebig1.1.dat | grep "Location: http://$na_address/download/folder1/filebig1.1.dat" curl --interface $eu_interface -Is http://$hq_address/download/folder1/filebig1.1.dat | grep "Location: http://$eu_address/download/folder1/filebig1.1.dat" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/MirrorCache-1.080/t/environ/14-project-report.sh new/MirrorCache-1.081/t/environ/14-project-report.sh --- old/MirrorCache-1.080/t/environ/14-project-report.sh 2024-08-01 10:38:57.000000000 +0200 +++ new/MirrorCache-1.081/t/environ/14-project-report.sh 2024-08-09 11:21:53.000000000 +0200 @@ -87,6 +87,10 @@ test "$lm" == "$(date +%s -r $mc/dt/project1/folder2/file1.1.dat)" +du=$($mc/curl '/rest/project_disk_usage?project=2.0+2') + +test "$du" == 13 + $mc/curl /report/mirrors | tidy --drop-empty-elements no | \ grep -A4 -F '<div class="repo">' | \ grep -A2 -F '"http://127.0.0.1:1304/project2/folder2">' | \ ++++++ MirrorCache.obsinfo ++++++ --- /var/tmp/diff_new_pack.k6Ajxe/_old 2024-08-16 14:41:17.111330920 +0200 +++ /var/tmp/diff_new_pack.k6Ajxe/_new 2024-08-16 14:41:17.115331087 +0200 @@ -1,5 +1,5 @@ name: MirrorCache -version: 1.080 -mtime: 1722501537 -commit: 584c1402d72e0d9782d6f7ccf5ef4a27f25ca82b +version: 1.081 +mtime: 1723195313 +commit: 3a5fcbe2959c82cb635f27c113def99e05256d7d
participants (1)
-
Source-Sync