Fix importing an Archive in default order. Update the test to now explicitly test for archive order. Fixes bug #11866.
This commit is contained in:
parent
317a4d759a
commit
b4c20a1203
4 changed files with 12 additions and 8 deletions
|
|
@ -146,12 +146,9 @@ sub addArchive {
|
|||
$archive->extract( $tempdirName );
|
||||
|
||||
# Get all the files in the archive
|
||||
my @files;
|
||||
my $wanted = sub { push @files, $File::Find::name; $outputSub->('Found file: %s', $File::Find::name); };
|
||||
find( {
|
||||
wanted => $wanted,
|
||||
}, $tempdirName );
|
||||
|
||||
$outputSub->('Getting list of files for sorting purposes');
|
||||
my @files = map { File::Spec->catfile($tempdirName, $_); } $archive->files;
|
||||
|
||||
# Sort files by date
|
||||
if ($sortBy eq 'date') {
|
||||
# Hash for storing last modified timestamps
|
||||
|
|
|
|||
|
|
@ -672,6 +672,12 @@ our $I18N = {
|
|||
context => 'label for progress bar in addArchive',
|
||||
},
|
||||
|
||||
'Getting list of files for sorting purposes' => {
|
||||
message => 'Getting list of files for sorting purposes',
|
||||
lastUpdated => 1237403498,
|
||||
context => 'label for progress bar in addArchive',
|
||||
},
|
||||
|
||||
'Found file: %s' => {
|
||||
message => 'Found file %s',
|
||||
lastUpdated => 1237403498,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue