Changeset 29975

Show
Ignore:
Timestamp:
09.06.2015 14:55:04 (4 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.

Files:
1 modified

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    }