Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 79720 Details for
Bug 122728
Patch to quickpkg to honor ROOT
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add ROOT support to quickpkg
quickpkg.patch (text/plain), 1.18 KB, created by
Joel Martin (RETIRED)
on 2006-02-13 13:19:23 UTC
(
hide
)
Description:
Patch to add ROOT support to quickpkg
Filename:
MIME Type:
Creator:
Joel Martin (RETIRED)
Created:
2006-02-13 13:19:23 UTC
Size:
1.18 KB
patch
obsolete
>--- /tmp/quickpkg 2006-02-13 13:50:03.579892403 -0500 >+++ /usr/lib/portage/bin/quickpkg 2006-01-22 00:08:05.000000000 -0500 >@@ -15,6 +15,8 @@ if [ "`whoami`" != "root" ] ; then > fi > > export PORTAGE_DB=$(portageq vdb_path) >+export ROOT=$(portageq envvar ROOT) >+export ROOT=${ROOT%/}/ > if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then > echo "QUICKPKG ver 1.2" > echo "USAGE: quickpkg <list of pkgs>" >@@ -67,8 +69,8 @@ do_pkg() { > NF=NF-3 > print > } >- }' "${SRCDIR}"/CONTENTS | cut -f2- -d" " - > "${MYDIR}"/filelist >- tar vjcf "${MYDIR}"/bin.tar.bz2 --files-from="${MYDIR}"/filelist --no-recursion >+ }' "${SRCDIR}"/CONTENTS | cut -f2- -d" " - | sed "s:^/::" > "${MYDIR}"/filelist >+ tar vjcf "${MYDIR}"/bin.tar.bz2 -C ${ROOT} --files-from="${MYDIR}"/filelist --no-recursion > > # join together the basic tbz2 and the pkg info files > xpak "${MYDIR}"/temp "${MYDIR}"/inf.xpak >@@ -109,7 +111,7 @@ for x in "$@" ; do > > # lets figure out what they want > else >- DIRLIST=$(portageq match / "${x}") >+ DIRLIST=$(portageq match ${ROOT} "${x}") > if [ -z "${DIRLIST}" ] ; then > eerror "Could not find anything to match '${x}'; skipping" > export PKGERROR="${PKGERROR} ${x}"
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 122728
: 79720