Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 308845 Details for
Bug 408801
unpacker.eclass - unpack rpms
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add support to unpack rpm
add_rpm_support.patch (text/plain), 1.38 KB, created by
Christoph Junghans (RETIRED)
on 2012-04-14 02:23:53 UTC
(
hide
)
Description:
add support to unpack rpm
Filename:
MIME Type:
Creator:
Christoph Junghans (RETIRED)
Created:
2012-04-14 02:23:53 UTC
Size:
1.38 KB
patch
obsolete
>--- /usr/portage/eclass/unpacker.eclass 2012-04-04 21:31:13.000000000 -0600 >+++ unpacker.eclass 2012-04-09 21:26:27.000000000 -0600 >@@ -12,7 +12,6 @@ > # and for all EAPI versions. > > # Possible todos: >-# - merge rpm unpacking > # - support partial unpacks? > > if [[ ${___ECLASS_ONCE_UNPACKER} != "recur -_+^+_- spank" ]] ; then >@@ -257,6 +256,36 @@ > unpack ./data.tar* > } > >+# @FUNCTION: unpack_rpm >+# @USAGE: <one rpm to unpack> >+# @DESCRIPTION: >+# Unpack a .rpm archive in style. >+unpack_rpm() { >+ [[ $# -eq 1 ]] || die "Usage: ${FUNCNAME} <file>" >+ >+ local rpm=$(find_unpackable_file "$1") >+ >+ unpack_banner "${rpm}" >+ >+ rpm2tar -O "${rpm}" | tar xf - || die "failure unpacking ${rpm}" >+ >+ # no src.rpm file continue >+ [[ ${rpm} != *".src.rpm" ]] && return 0 >+ >+ eshopts_push -s nullglob >+ >+ # unpack everything >+ local a >+ for a in *.tar.{gz,bz2} *.t{gz,bz2} *.zip *.ZIP ; do >+ unpacker "./${a}" >+ rm -f "${a}" >+ done >+ >+ eshopts_pop >+ >+ return 0 >+} >+ > # @FUNCTION: _unpacker > # @USAGE: <one archive to unpack> > # @INTERNAL >@@ -288,6 +317,8 @@ > # then figure out if there are any archiving aspects > arch="" > case ${m} in >+ *.rpm) >+ arch="unpack_rpm" ;; > *.tgz|*.tbz|*.tbz2|*.txz|*.tar.*|*.tar) > arch="tar --no-same-owner -xof" ;; > *.deb) >@@ -362,6 +393,8 @@ > d="app-arch/p7zip" ;; > *.xz) > d="app-arch/xz-utils" ;; >+ *.rpm) >+ d="app-arch/rpm2targz" ;; > esac > deps+=" ${d}" > done
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 408801
:
305843
|
306377
|
308253
|
308359
| 308845