Added support for case-insensitive recognition of package names. Fixes #5854.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36534 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -393,7 +393,7 @@ function ReadPackageNamesIntoMemory()
|
|||||||
# read list into associative array
|
# read list into associative array
|
||||||
while read line ; do
|
while read line ; do
|
||||||
local pkg=`echo ${line} | awk '{print $1}'`
|
local pkg=`echo ${line} | awk '{print $1}'`
|
||||||
local pkgDeps=${line/':'/}
|
local pkgDeps=${line/"${pkg} :"/}
|
||||||
availablePackages[${pkg}]="${pkgDeps}"
|
availablePackages[${pkg}]="${pkgDeps}"
|
||||||
availablePackagesKeys="${availablePackagesKeys} ${pkg}"
|
availablePackagesKeys="${availablePackagesKeys} ${pkg}"
|
||||||
done < ${file}
|
done < ${file}
|
||||||
@@ -419,8 +419,9 @@ function GeneratePackageNames()
|
|||||||
|
|
||||||
nonRepeatingDeps=""
|
nonRepeatingDeps=""
|
||||||
GetPackageDependencies "$pkg"
|
GetPackageDependencies "$pkg"
|
||||||
|
local lowerCasePkg=`echo ${pkg} | tr '[A-Z]' '[a-z]'`
|
||||||
if IsPackageAndDepsOkToInstall ${pkg} ; then
|
if IsPackageAndDepsOkToInstall ${pkg} ; then
|
||||||
echo "${pkg} : ${nonRepeatingDeps}" >> ${file}
|
echo "${lowerCasePkg} : ${pkg} ${nonRepeatingDeps}" >> ${file}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done < ${file}.temp
|
done < ${file}.temp
|
||||||
@@ -483,7 +484,8 @@ function BuildListOfRequestedPackages()
|
|||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
wantsToInstall="${wantsToInstall} $1"
|
local lowerCase=`echo $1 | tr '[A-Z]' '[a-z]'`
|
||||||
|
wantsToInstall="${wantsToInstall} $lowerCase"
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user