Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 122728
Collapse All | Expand All

(-)/tmp/quickpkg (-3 / +5 lines)
Lines 15-20 if [ "`whoami`" != "root" ] ; then Link Here
15
fi
15
fi
16
16
17
export PORTAGE_DB=$(portageq vdb_path)
17
export PORTAGE_DB=$(portageq vdb_path)
18
export ROOT=$(portageq envvar ROOT)
19
export ROOT=${ROOT%/}/
18
if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
20
if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
19
	echo "QUICKPKG ver 1.2"
21
	echo "QUICKPKG ver 1.2"
20
	echo "USAGE: quickpkg <list of pkgs>"
22
	echo "USAGE: quickpkg <list of pkgs>"
Lines 67-74 do_pkg() { Link Here
67
					NF=NF-3
69
					NF=NF-3
68
				print
70
				print
69
			}
71
			}
70
		}' "${SRCDIR}"/CONTENTS | cut -f2- -d" " - > "${MYDIR}"/filelist
72
		}' "${SRCDIR}"/CONTENTS | cut -f2- -d" " - | sed "s:^/::" > "${MYDIR}"/filelist
71
		tar vjcf "${MYDIR}"/bin.tar.bz2 --files-from="${MYDIR}"/filelist --no-recursion
73
		tar vjcf "${MYDIR}"/bin.tar.bz2 -C ${ROOT} --files-from="${MYDIR}"/filelist --no-recursion
72
74
73
		# join together the basic tbz2 and the pkg info files
75
		# join together the basic tbz2 and the pkg info files
74
		xpak "${MYDIR}"/temp "${MYDIR}"/inf.xpak
76
		xpak "${MYDIR}"/temp "${MYDIR}"/inf.xpak
Lines 109-115 for x in "$@" ; do Link Here
109
111
110
	# lets figure out what they want
112
	# lets figure out what they want
111
	else
113
	else
112
		DIRLIST=$(portageq match / "${x}")
114
		DIRLIST=$(portageq match ${ROOT} "${x}")
113
		if [ -z "${DIRLIST}" ] ; then
115
		if [ -z "${DIRLIST}" ] ; then
114
			eerror "Could not find anything to match '${x}'; skipping"
116
			eerror "Could not find anything to match '${x}'; skipping"
115
			export PKGERROR="${PKGERROR} ${x}"
117
			export PKGERROR="${PKGERROR} ${x}"

Return to bug 122728