Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage4.functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 675 by niro, Sun Feb 10 12:26:09 2008 UTC revision 676 by niro, Tue Feb 26 19:49:20 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # Magellan Linux Installer Functions (mage.functions.sh)  # Magellan Linux Installer Functions (mage.functions.sh)
3  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.35 2008-02-10 12:26:09 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.functions.sh,v 1.36 2008-02-26 19:49:20 niro Exp $
4    
5  mage_setup()  mage_setup()
6  {  {
# Line 1315  get_highest_magefile() Line 1315  get_highest_magefile()
1315   local PNAME="$2"   local PNAME="$2"
1316   local magefile   local magefile
1317    
1318   for magefile in $(ls --format=single-column -v ${MAGEDIR}/${PCAT}/${PNAME}/*)   # do not list the content of a directory, only the name (-d)
1319     for magefile in $(ls --format=single-column -v -d ${MAGEDIR}/${PCAT}/${PNAME}/*)
1320   do   do
1321     [[ -z ${magefile} ]] && continue
1322   # we exclude subdirs (for stuff like a md5sum dir)   # we exclude subdirs (for stuff like a md5sum dir)
1323   [ -d ${magefile} ] && continue   [[ -d ${magefile} ]] && continue
1324   if check_stable_package ${magefile}   if check_stable_package ${magefile}
1325   then   then
1326   HIGHEST_MAGEFILE=${magefile}   HIGHEST_MAGEFILE=${magefile}

Legend:
Removed from v.675  
changed lines
  Added in v.676