case $distro in Scientific*) distro="SL" ; esac
elif [ -f /etc/lsb-release ] ; then
. /etc/lsb-release
- echo $DISTRIB_CODENAME
+ distro=$DISTRIB_CODENAME
elif [ -f /etc/debian_version ] ; then
case $(cat /etc/debian_version) in
6.*) distro=squeeze ;;
- 7.*) distro=wheezy ;;
- *) distro=unknown.debian.in.build.common ;;
+ 7.*) distro=wheezy ;;
+ # might be that I'm getting 'jessie'sid' just because it's still testing..
+ 8.*|jessie*) distro=jessie ;;
+ *) distro=unknown.debian.in.build.common ;;
esac
fi
[ -z "$distro" ] && { echo "build.common.pl_getDistro-unknown"; exit 1; }
[Ss]L*)
releasename=sl$release
;;
- squeeze|wheezy|oneiric|precise|quantal|raring|saucy)
+ squeeze|wheezy|jessie|oneiric|precise|quantal|raring|saucy|trusty)
releasename=$distro
;;
*)
# usage: pl_getPackages [-a arch] fcdistro pldistro pkg-file[..s]
function pl_getPackages() { pl_parsePkgs package "$@" ; }
function pl_getGroups() { pl_parsePkgs group "$@" ; }
+function pl_getPips() { pl_parsePkgs pip "$@" ; }
+function pl_getGems() { pl_parsePkgs gem "$@" ; }
##############################