Bugzilla – Attachment 62492 Details for
Bug 17669
Add purging temporary uploads to cleanup_database
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17669: [QA Follow-up] Rename --temp-uploads-override parameter
Bug-17669-QA-Follow-up-Rename---temp-uploads-overr.patch (text/plain), 2.76 KB, created by
Jonathan Druart
on 2017-04-20 18:28:27 UTC
(
hide
)
Description:
Bug 17669: [QA Follow-up] Rename --temp-uploads-override parameter
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-20 18:28:27 UTC
Size:
2.76 KB
patch
obsolete
>From 0260466f5eac5df32580dab426d6b9916b835383 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Thu, 30 Mar 2017 08:51:17 +0200 >Subject: [PATCH] Bug 17669: [QA Follow-up] Rename --temp-uploads-override > parameter > >As requested by QA on comment25. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > misc/cronjobs/cleanup_database.pl | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index f67a934..4e2c243 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -44,7 +44,7 @@ use Koha::UploadedFiles; > > sub usage { > print STDERR <<USAGE; >-Usage: $0 [-h|--help] [--sessions] [--sessdays DAYS] [-v|--verbose] [--zebraqueue DAYS] [-m|--mail] [--merged] [--import DAYS] [--logs DAYS] [--searchhistory DAYS] [--restrictions DAYS] [--all-restrictions] [--fees DAYS] [--temp-uploads] [--temp-uploads-override DAYS] >+Usage: $0 [-h|--help] [--sessions] [--sessdays DAYS] [-v|--verbose] [--zebraqueue DAYS] [-m|--mail] [--merged] [--import DAYS] [--logs DAYS] [--searchhistory DAYS] [--restrictions DAYS] [--all-restrictions] [--fees DAYS] [--temp-uploads] [--temp-uploads-days DAYS] > > -h --help prints this help message, and exits, ignoring all > other options >@@ -82,7 +82,7 @@ Usage: $0 [-h|--help] [--sessions] [--sessdays DAYS] [-v|--verbose] [--zebraqueu > --del-unv-selfreg DAYS Delete unverified self registrations older than DAYS > --unique-holidays DAYS Delete all unique holidays older than DAYS > --temp-uploads Delete temporary uploads. >- --temp-uploads-override DAYS Override the corresponding preference value. >+ --temp-uploads-days DAYS Override the corresponding preference value. > USAGE > exit $_[0]; > } >@@ -106,7 +106,7 @@ my $pUnvSelfReg; > my $fees_days; > my $special_holidays_days; > my $temp_uploads; >-my $override_temp_uploads; >+my $temp_uploads_days; > > GetOptions( > 'h|help' => \$help, >@@ -128,7 +128,7 @@ GetOptions( > 'del-unv-selfreg' => \$pUnvSelfReg, > 'unique-holidays:i' => \$special_holidays_days, > 'temp-uploads' => \$temp_uploads, >- 'temp-uploads-override:i' => \$override_temp_uploads, >+ 'temp-uploads-days:i' => \$temp_uploads_days, > ) || usage(1); > > # Use default values >@@ -315,7 +315,7 @@ if( $temp_uploads ) { > # If the pref is empty, nothing happens (unless you override). > print "Purging temporary uploads.\n" if $verbose; > Koha::UploadedFiles->delete_temporary({ >- override_pref => $override_temp_uploads, >+ override_pref => $temp_uploads_days, > }); > print "Done purging temporary uploads.\n" if $verbose; > } >-- >2.9.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17669
:
58176
|
58177
|
58178
|
58179
|
58810
|
58811
|
58812
|
61239
|
61240
|
61241
|
61242
|
61243
|
61465
|
61466
|
61467
|
61468
|
61469
|
61727
|
61729
|
61730
|
61742
|
61743
|
61805
|
61809
|
61818
|
61819
|
62486
|
62487
|
62488
|
62489
|
62490
|
62491
| 62492 |
62493
|
62494
|
62495