#PKG_DOCS_PET_REPOS
#where to download the pet pkgs databases from.libdb4
#first field is for testing the url.
#second field is full URI of the database file.
#third field is name of db file when local and after being processed into standard format
# (in the case of PET databases, the names are the same and no processing is required)
#110607 i was putting many "common" pet pkgs in the 'quirky' repo, now using 'common'.
#110608 simplify pet pkg search order.
#111124 add arm architecture repo.
#111126 Packages-puppy-noarch-official now has all no-architecture PETs, supplanting -common-.

ARCHDIR=""
if [ "$DISTRO_TARGETARCH" != "x86" ];then #defined in /etc/DISTRO_SPECS
 ARCHDIR="${DISTRO_TARGETARCH}" #ex: arm1176jzf-s
fi

#PET_REPOS
#hardcode the pet repos in here...
#first field is for testing the url.
#second field is full URI of the repo
#third field is the name of db-file(s) associated with that repo. it may have glob wildcards.
# ex: Packages-puppy-4-official (note, url paths are in the database)

if [ "$ARCHDIR" = "" ];then
 PKG_DOCS_PET_REPOS='ibiblio.org|http://distro.ibiblio.org//quirky/Packages-puppy-wary5-official|Packages-puppy-wary5-official ibiblio.org|http://distro.ibiblio.org//quirky/Packages-puppy-quirky-official|Packages-puppy-quirky-official ibiblio.org|http://distro.ibiblio.org//quirky/Packages-puppy-common-official|Packages-puppy-common-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-5-official|Packages-puppy-5-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-4-official|Packages-puppy-4-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-3-official|Packages-puppy-3-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-2-official|Packages-puppy-2-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-lucid-official|Packages-puppy-lucid-official ibiblio.org|http://distro.ibiblio.org/puppylinux/Packages-puppy-slacko-official|Packages-puppy-slacko-official ibiblio.org|http://distro.ibiblio.org//quirky/Packages-puppy-noarch-official|Packages-puppy-noarch-official ibiblio.org|http://distro.ibiblio.org//quirky/Packages-puppy-squeeze-official|Packages-puppy-squeeze-official ibiblio.org|http://distro.ibiblio.org//puppylinux/Packages-puppy-wheezy-official|Packages-puppy-wheezy-official'
 PET_REPOS='ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky|Packages-puppy-*-official ibiblio.org|http://distro.ibiblio.org//puppylinux|Packages-puppy-*-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux|Packages-puppy-*-official smokey01.com|http://smokey01.com/01micko|Packages-puppy-spup-unofficial ibiblio.org|http://distro.ibiblio.org//quirky|Packages-puppy-*-official'
else
 PKG_DOCS_PET_REPOS="ibiblio.org|http://distro.ibiblio.org/quirky/${ARCHDIR}/Packages-puppy-${DISTRO_COMPAT_VERSION}-official|Packages-puppy-${DISTRO_COMPAT_VERSION}-official ibiblio.org|http://distro.ibiblio.org/quirky/Packages-puppy-noarch-official|Packages-puppy-noarch-official"
 PET_REPOS="ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky/${ARCHDIR}|Packages-puppy-${DISTRO_COMPAT_VERSION}-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/quirky/${ARCHDIR}|Packages-puppy-${DISTRO_COMPAT_VERSION}-official ibiblio.org|http://distro.ibiblio.org/quirky|Packages-puppy-noarch-official ftp.nluug.nl|http://ftp.nluug.nl/ftp/pub/os/Linux/distr/quirky|Packages-puppy-noarch-official uoc.gr|http://ftp.cc.uoc.gr/mirrors/linux/quirky|Packages-puppy-noarch-official"
fi

#PACKAGELISTS_PET_ORDER
#this defines where Woof looks first and second (and third, etc.) for pet pkgs

if [ "$ARCHDIR" = "" ];then #x86.
 PACKAGELISTS_PET_ORDER="Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
 #110722 fiddling with this again...
 case $DISTRO_BINARY_COMPAT in #in file DISTRO_SPECS
  mageia) #Drake Puppy
   PACKAGELISTS_PET_ORDER="Packages-puppy-drake-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  ;;
  debian|devuan)
   PACKAGELISTS_PET_ORDER="Packages-puppy-wheezy-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  ;;
  puppy) #includes Puppy 4.3.1, wary 5.x
   case $DISTRO_COMPAT_VERSION in
    4)
     PACKAGELISTS_PET_ORDER='Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-4-official'   
    ;;
    *) #wary5
     PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_COMPAT_VERSION}-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-4-official"
    ;;
   esac
  ;;
  slackware) #110816 slacko
   PACKAGELISTS_PET_ORDER='Packages-puppy-slacko-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official'
  ;;
  *)
   [ -f Packages-puppy-${DISTRO_COMPAT_VERSION}-official ] && PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_COMPAT_VERSION}-official Packages-puppy-noarch-official Packages-puppy-common-official Packages-puppy-wary5-official Packages-puppy-4-official"
  ;;
 esac
else
 #arm arch. etc...
 PACKAGELISTS_PET_ORDER="Packages-puppy-${DISTRO_COMPAT_VERSION}-official Packages-puppy-noarch-official"
fi
