WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: where is the list of the packages included in an sce?  (Read 1280 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
where is the list of the packages included in an sce?
« on: October 24, 2014, 03:56:51 PM »
Hi
where is the list of the packages included in an sce?
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: where is the list of the packages included in an sce?
« Reply #1 on: October 24, 2014, 04:59:01 PM »
For a loaded file.sce, it is /usr/local/sce/file/file.md5sum, which also contains the the md5 data for the packages that made up the sce.  I don't want to make a duplicate file to list them without the md5.  Below is a quick and easy script to list the packages.  We could call it scepkglist and add it to base, could be useful.

Code: [Select]
#!/bin/sh

if [ ! -d /usr/local/sce/"$1" ] || [ -z "$1" ]; then
echo ""$1" is not a mounted sce."
echo "Below is a list of mounted sces."
/bb/ls -1 /tmp/tcloop/ | select "Select SCE to view package list." "-"
read SCE < /tmp/select.ans
[ "$SCE" == "q" ] && exit 1
cat /usr/local/sce/"$SCE"/"$SCE".md5sum | cut -f1 -d: > /tmp/"$SCE".sce.pkglist
echo "View /tmp/"$SCE".sce.pkglist to view list of packages for "$SCE".sce."
else
cat /usr/local/sce/"$1"/"$1".md5sum | cut -f1 -d: > /tmp/"$1".sce.pkglist
echo "View /tmp/"$1".sce.pkglist to view list of packages for "$1".sce."
fi


« Last Edit: October 24, 2014, 05:26:24 PM by Jason W »