Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 22907 Details for
Bug 35863
pygtk 0.6.11 overwrites files from pygtk 2.0.0 when installed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch backing up old files v2
pygtk-patch-v3.patch (text/plain), 1.11 KB, created by
Felix Riemann
on 2003-12-31 05:09:16 UTC
(
hide
)
Description:
patch backing up old files v2
Filename:
MIME Type:
Creator:
Felix Riemann
Created:
2003-12-31 05:09:16 UTC
Size:
1.11 KB
patch
obsolete
>*** pygtk-0.6.11-orig.ebuild 2003-12-31 12:53:04.295174608 +0100 >--- pygtk-0.6.11.ebuild 2003-12-31 13:08:42.178594656 +0100 >*************** >*** 18,21 **** >--- 18,29 ---- > > src_install() { > einstall || die >+ if has_version ">=dev-python/pygtk-1"; then >+ einfo "Backing up older files..." >+ cd ${D}/usr/lib >+ tar -cjf pygtk-0.6.11-backup.tar.bz2 python*/site-packages/pygtk* >+ mv pygtk-0.6.11-backup.tar.bz2 ${D}/usr/share/pygtk/ >+ einfo "Preserving newer files..." >+ rm -v ${D}/usr/lib/python*/site-packages/pygtk* >+ fi > } >*** pygtk-2.0.0-orig.ebuild 2003-12-31 12:53:15.087533920 +0100 >--- pygtk-2.0.0.ebuild 2003-12-31 13:47:52.414304520 +0100 >*************** >*** 36,38 **** >--- 36,48 ---- > pkg_postinst() { > einfo 'If you built pygtk with OpenGL support you still need to emerge PyOpenGL to use it. ' > } >+ >+ pkg_postrm() { >+ if [ -f /usr/share/pygtk/pygtk-0.6.11-backup.tar.bz2 ] && has_version "=dev-python/pygtk-0.6.11"; >+ then >+ einfo "Restoring pygtk-0.6.11 files..." >+ cd /usr/lib >+ cp /usr/share/pygtk/pygtk-0.6.11-backup.tar.bz2 /usr/lib/ >+ tar -xjf pygtk-0.6.11-backup.tar.bz2 >+ 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 35863
:
22243
|
22250
|
22280
|
22356
| 22907