mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
493 B

  1. mainfunction="packagedb_mainfunction"
  2. packagedb_mainfunction ()
  3. {
  4. if [ "$ROCK_BUILD_TARGET" != 1 ] ; then
  5. echo "$xpkg can only be built with ./scripts/Build-Target!"
  6. false
  7. fi
  8. echo "Creating package database ..."
  9. admdir="$xroot/var/adm"
  10. create_package_db $admdir $xroot/ROCK/pkgs
  11. cat > $xroot/ROCK/isofs_packages.txt <<- EOT
  12. EVERY build/${ROCKCFG_ID}/ROCK/pkgs/packages.db ${ROCKCFG_SHORTID}/pkgs/packages.db
  13. SPLIT build/${ROCKCFG_ID}/ROCK/pkgs/ ${ROCKCFG_SHORTID}/pkgs/
  14. EOT
  15. }