1645 |
} |
} |
1646 |
|
|
1647 |
|
|
1648 |
# cuts full pathnames or versionized names down to basename |
# unused? |
1649 |
choppkgname() |
# |
1650 |
{ |
# # cuts full pathnames or versionized names down to basename |
1651 |
#we want this only if full name was used |
# choppkgname() |
1652 |
if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ] |
# { |
1653 |
then |
# #we want this only if full name was used |
1654 |
#cuts ARCH and PBUILD |
# if [ -n "$(echo ${MAGENAME}|fgrep .mage)" ] |
1655 |
#ARCH comes from ${MAGERC} |
# then |
1656 |
MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}$(print_distrotag)-r*.::g") |
# #cuts ARCH and PBUILD |
1657 |
|
# #ARCH comes from ${MAGERC} |
1658 |
|
# MAGENAME=$(echo ${MAGENAME} |sed -e "s:-${ARCH}$(print_distrotag)-r*.::g") |
1659 |
|
# |
1660 |
|
# #cuts version number |
1661 |
|
# MAGENAME=$(basename ${MAGENAME%-*} .mage) |
1662 |
|
# fi |
1663 |
|
# } |
1664 |
|
|
|
#cuts version number |
|
|
MAGENAME=$(basename ${MAGENAME%-*} .mage) |
|
|
fi |
|
|
} |
|
1665 |
|
|
1666 |
# get_categorie $PNAME, returns CATEGORIE |
# get_categorie $PNAME, returns CATEGORIE |
1667 |
# $1=pname |
# $1=pname |