Changeset 20757


Ignore:
Timestamp:
2009-09-30T10:53:19+13:00 (13 years ago)
Author:
kjdon
Message:

reversesort option not useful for import, as the sorting is done during build now. I have moved this option to ArchivesInfPlugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/import.pl

    r20685 r20757  
    213213    'reqd' => "no",
    214214    'modegli' => "2" },
    215       { 'name' => "reversesort",
    216     'desc' => "{import.reversesort}",
    217     'type' => "flag",
    218     'reqd' => "no",
    219     'modegli' => "2" },
    220215      { 'name' => "removeprefix",
    221216    'desc' => "{BasClas.removeprefix}",
     
    283278    $out, $faillog, $gli,
    284279    $gzip, $groupsize,
    285     $sortmeta, $reversesort, $removeprefix, $removesuffix
     280    $sortmeta, $removeprefix, $removesuffix
    286281    );
    287282
     
    455450    }
    456451   
    457     if (defined $sortmeta) {
    458     if (defined $collectcfg->{'reversesort'} && $collectcfg->{'reversesort'} =~ /^true$/i) {
    459         $reversesort = 1;
    460     }
    461     } else {
    462     # reversesort only valid with sortmeta
    463     $reversesort = 0;
    464     }
    465452    if (defined $collectcfg->{'removeprefix'} && $removeprefix eq "") {
    466453    $removeprefix = $collectcfg->{'removeprefix'};
     
    540527    $archive_info = new arcinfo ();
    541528    $archive_info->load_info ($arcinfo_doc_filename);
    542     if ($reversesort) {
    543     $archive_info->reverse_sort();
    544     }
    545529
    546530    if ($manifest eq "") {
Note: See TracChangeset for help on using the changeset viewer.