Browse Source

* implemented bin/sde-list-pkg's 'desc' mode when a config is given but no items

git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21688 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
4df69da600
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      bin/sde-list-pkg

+ 12
- 1
bin/sde-list-pkg

@ -122,7 +122,18 @@ list_desc() {
done
fi
elif [ -r "$SDEROOT/config/$config/packages" ]; then
echo_abort 1 "Not yet implemented"
if [ $# -eq 0 ]; then
# every active package
grep '^X' config/xfce/packages | cut -d' ' -f4,5 | while read repo pkg; do
desc=package/$repo/$pkg/$pkg.desc
if [ -f "$SDEROOT/$desc" ]; then
echo "$desc"
fi
done
else
echo_abort 1 "Not yet implemented"
fi
else
echo_abort -1 "$config: config not found."
fi

Loading…
Cancel
Save