Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20586 Details for
Bug 27981
have quickpkg continue even if 1 pkg failed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
quickpkg.patch
quickpkg.patch (text/plain), 2.46 KB, created by
SpanKY
on 2003-11-11 06:43:42 UTC
(
hide
)
Description:
quickpkg.patch
Filename:
MIME Type:
Creator:
SpanKY
Created:
2003-11-11 06:43:42 UTC
Size:
2.46 KB
patch
obsolete
>--- quickpkg.orig 2003-11-11 09:32:05.375030312 -0500 >+++ quickpkg 2003-11-11 09:42:55.937129840 -0500 >@@ -14,17 +14,19 @@ > echo "You must run this as root" > exit 1 > fi >+ >+export PORTAGE_DB="/var/db/pkg" > if [ -z $1 ] ; then > echo "QUICKPKG ver 1.2" > echo "USAGE: quickpkg <list of pkgs>" > echo " a pkg can be of the form:" >- echo " - /var/db/pkg/<CATEGORY>/<PKG-VERSION>/" >+ echo " - ${PORTAGE_DB}/<CATEGORY>/<PKG-VERSION>/" > echo " - single depend-type atom ..." > echo " if portage can emerge it, quickpkg can make a package" > echo " for exact definitions of depend atoms, see ebuild(5)" > echo > echo "EXAMPLE:" >- echo " quickpkg /var/db/pkg/net-www/apache-1.3.27-r1" >+ echo " quickpkg ${PORTAGE_DB}/net-www/apache-1.3.27-r1" > echo " package up apache, just version 1.3.27-r1" > echo " quickpkg apache" > echo " package up apache, all versions of apache installed" >@@ -43,7 +45,7 @@ > # $2 = category > do_pkg() { > MYDIR="${PORTAGE_TMPDIR}/portage-pkg/$1" >- SRCDIR="/var/db/pkg/$2/$1" >+ SRCDIR="${PORTAGE_DB}/$2/$1" > > ebegin "Building package for $1" > ( >@@ -84,8 +86,9 @@ > } > > # here we parse the parameters given to use on the cmdline >+export PKGERROR="" > export PKGSTATS="" >-for x in $@ ; do >+for x in "$@" ; do > > # they gave us full path > if [ -e ${x}/CONTENTS ] ; then >@@ -97,19 +100,36 @@ > else > DIRLIST="`portageq match / ${x}`" > if [ -z "${DIRLIST}" ] ; then >- eerror "could not find anything to match ${x}" >- exit 1 >+ eerror "Could not find anything to match '${x}'; skipping" >+ export PKGERROR="${PKGERROR} ${x}" >+ continue > fi > > for d in ${DIRLIST} ; do > pkg="`echo ${d} | cut -d/ -f2`" > cat="`echo ${d} | cut -d/ -f1`" >- do_pkg ${pkg} ${cat} >+ if [ -f "${PORTAGE_DB}/${cat}/${pkg}/CONTENTS" ] ; then >+ do_pkg ${pkg} ${cat} >+ elif [ -d "${PORTAGE_DB}/${cat}/${pkg}" ] ; then >+ ewarn "Package '${cat}/${pkg}' was injected; skipping" >+ else >+ eerror "Unhandled case (${cat}/${pkg}) !" >+ eerror "Please file a bug at http://bugs.gentoo.org/" >+ exit 10 >+ fi > done > fi > > done > >-[ -z "${PKGSTATS}" ] \ >- && eerror "No packages found" \ >- || echo $'\n'"$(einfo Packages now in ${PKGDIR}:)${PKGSTATS}" >+if [ -z "${PKGSTATS}" ] ; then >+ eerror "No packages found" >+ exit 1 >+else >+ echo $'\n'"$(einfo Packages now in ${PKGDIR}:)${PKGSTATS}" >+fi >+if [ ! -z "${PKGERROR}" ] ; then >+ ewarn "The following packages could not be found:" >+ ewarn "${PKGERROR}" >+ exit 2 >+fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27981
: 20586