Browse Source

[opensde] fixed a bug introduced at 537872a1b9 in lib/functions.in

karasz/new-early
Alejandro Mery 17 years ago
committed by Nagy Karoly Gabriel
parent
commit
75854dd11d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/functions.in

+ 3
- 3
lib/functions.in

@ -512,17 +512,17 @@ dump_env() {
# #
pkgdesc() { pkgdesc() {
local pattern= local pattern=
local descfile=$( cd "$base"; ls -1d package/*/$2/$2.desc 2> /dev/null )
local descfile=$( ls -1d $base/package/*/$2/$2.desc 2> /dev/null )
case "$1" in case "$1" in
ver) pattern="V" ;; ver) pattern="V" ;;
*) pattern="$1" ;; *) pattern="$1" ;;
esac esac
if [ -s "$base/$descfile" ]; then
if [ -s "$descfile" ]; then
case "$1" in case "$1" in
confdir) confdir)
echo "$base/${descfile%/*}"
echo "${descfile%/*}"
;; ;;
*) *)
sed -n "s,^\[$pattern\][ \t]\+\(.\+\)[ \t]*$,\1,p" "$descfile" sed -n "s,^\[$pattern\][ \t]\+\(.\+\)[ \t]*$,\1,p" "$descfile"

Loading…
Cancel
Save