Address issue 33 (sbopkg sometimes picks older pkg to install; not latest)

Change a 'head' to a 'tail' so that info_item() is less likely to pick an
older package to present for installation.
This commit is contained in:
slakmagik 2010-02-03 05:10:33 +00:00
parent 9614f088c4
commit fd99d8e952
2 changed files with 3 additions and 1 deletions

View File

@ -14,4 +14,6 @@ enhancements:
is useful, for example, if you have some SBo/sbopkg directories on a
temporary filesystem and don't want to be bothered with repeated directory
creation prompts. Thanks to agikhan for the report.
* Address an issue where sbopkg could sometimes pick an older package to
present for installation rather than the most recent one.
+--------------------------+

View File

@ -1147,7 +1147,7 @@ info_item() {
if [[ -z $CURPACKAGE ]]; then
unset MENUPACKAGE
else
CURPACKAGE=$(head -n 1 <<< "$CURPACKAGE")
CURPACKAGE=$(tail -n 1 <<< "$CURPACKAGE")
MENUPACKAGE="Install $CURPACKAGE"
fi
if [[ -z $INSTALLEDPACKAGE ]]; then