Changeset 29975 for main


Ignore:
Timestamp:
2015-06-09T14:55:04+12:00 (9 years ago)
Author:
ak19
Message:

Related to previous commits 22974 and 29972. This one sorts the list of Downloaders upon a readdir to read the Download.pm files. Sorting ensures a consistent ordering across operating systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/downloadinfo.pl

    r12640 r29975  
    162162    my @downloader_list = ();
    163163    if (opendir (INDIR, $downloaders_dir)) {
    164         @downloader_list = grep (/Download\.pm$/, readdir (INDIR));
     164        @downloader_list = grep (/Download\.pm$/, sort(readdir (INDIR)));
    165165        closedir (INDIR);
    166166    }
Note: See TracChangeset for help on using the changeset viewer.