Lines 169-179
Link Here
|
169 |
for content in `find ${PKG_DBDIR} -name CONTENTS`; do |
169 |
for content in `find ${PKG_DBDIR} -name CONTENTS`; do |
170 |
# extract the category, package name and package version |
170 |
# extract the category, package name and package version |
171 |
CATPKGVER=$(echo ${content} | sed "s:${PKG_DBDIR}/\(.*\)/CONTENTS:\1:") |
171 |
CATPKGVER=$(echo ${content} | sed "s:${PKG_DBDIR}/\(.*\)/CONTENTS:\1:") |
|
|
172 |
CATPKG="${CATPKGVER%%-[0-9]*}" |
172 |
|
173 |
|
173 |
# exclude packages that are an exception, like portage and python itself. |
174 |
# exclude packages that are an exception, like portage and python itself. |
174 |
exception=0 |
175 |
exception=0 |
175 |
for exp in ${PKGS_EXCEPTIONS}; do |
176 |
for exp in ${PKGS_EXCEPTIONS}; do |
176 |
if [ -n "$(echo ${CATPKGVER} | grep ${exp})" ]; then |
177 |
if [ -z "${CATPKG##${exp}}" ]; then |
177 |
exception=1 |
178 |
exception=1 |
178 |
break; |
179 |
break; |
179 |
fi |
180 |
fi |
Lines 186-192
Link Here
|
186 |
# Check if package is in PKGS_MANUAL |
187 |
# Check if package is in PKGS_MANUAL |
187 |
if [[ DIRECT_ONLY -ne 1 ]]; then |
188 |
if [[ DIRECT_ONLY -ne 1 ]]; then |
188 |
for pkg in ${PKGS_MANUAL}; do |
189 |
for pkg in ${PKGS_MANUAL}; do |
189 |
if [ -n "$(echo ${CATPKGVER} | grep ${pkg})" ]; then |
190 |
if [ -z "${CATPKG##${pkg}}" ]; then |
190 |
exception=2 |
191 |
exception=2 |
191 |
break; |
192 |
break; |
192 |
fi |
193 |
fi |
Lines 197-203
Link Here
|
197 |
|
198 |
|
198 |
# replace version number by SLOT if IGNORE_VERSIONS != 0 |
199 |
# replace version number by SLOT if IGNORE_VERSIONS != 0 |
199 |
if [[ IGNORE_VERSIONS -ne 0 ]]; then |
200 |
if [[ IGNORE_VERSIONS -ne 0 ]]; then |
200 |
CATPKGVER="${CATPKGVER%%-[0-9]*}:${SLOT}" |
201 |
CATPKGVER="${CATPKG}:${SLOT}" |
201 |
else |
202 |
else |
202 |
CATPKGVER="=${CATPKGVER}" |
203 |
CATPKGVER="=${CATPKGVER}" |
203 |
fi |
204 |
fi |