Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: "gentoo-dev@l.g.o" <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] gnome2-utils.eclass add support for gdk-pixbuf cache update
Date: Tue, 10 Sep 2013 10:23:15
Message-Id: 0C42C581-AB16-4F8F-9948-EDF4851BAE03@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH] gnome2-utils.eclass add support for gdk-pixbuf cache update by Alex Xu
1 On 2013-09-09, at 7:31 PM, Alex Xu <alex_y_xu@×××××.ca> wrote:
2
3 > On 09/09/13 08:29 PM, Gilles Dartiguelongue wrote:
4 >>
5 >> Index: gdk-pixbuf-2.28.2.ebuild
6 >> ===================================================================
7 >> RCS file: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v
8 >> retrieving revision 1.3
9 >> diff -u -B -r1.3 gdk-pixbuf-2.28.2.ebuild
10 >> --- gdk-pixbuf-2.28.2.ebuild 3 Sep 2013 21:59:11 -0000 1.3
11 >> +++ gdk-pixbuf-2.28.2.ebuild 9 Sep 2013 22:28:20 -0000
12 >> @@ -67,6 +67,15 @@
13 >>  
14 >>  pkg_preinst() {
15 >>  gnome2_gdk_pixbuf_savelist
16 >> +
17 >> + # Make sure loaders.cache belongs to gdk-pixbuf alone
18 >> + local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
19 >> +
20 >> + if [[ -e ${ROOT}${cache} ]]; then
21 >> + cp "${ROOT}"${cache} "${D}"/${cache} || die
22 >> + else
23 >> + touch "${D}"/${cache} || die
24 >> + fi
25 >>  }
26 >>  
27 >>  pkg_postinst() {
28 >
29 > Index: gdk-pixbuf-2.28.2.ebuild
30 > ===================================================================
31 > RCS file:
32 > /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v
33 > retrieving revision 1.3
34 > diff -u -B -r1.3 gdk-pixbuf-2.28.2.ebuild
35 > --- gdk-pixbuf-2.28.2.ebuild 3 Sep 2013 21:59:11 -0000 1.3
36 > +++ gdk-pixbuf-2.28.2.ebuild 9 Sep 2013 22:28:20 -0000
37 > @@ -67,6 +67,15 @@
38 >
39 > pkg_preinst() {
40 > gnome2_gdk_pixbuf_savelist
41 > +
42 > + # Make sure loaders.cache belongs to gdk-pixbuf alone
43 > + local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
44 > +
45 > + if [[ -e ${ROOT}${cache} ]]; then
46 > + cp "${ROOT}"${cache} "${D}"/${cache} || die
47 > + else
48 > + touch "${D}"/${cache} || die
49 > + fi
50 > }
51 >
52 > pkg_postinst() {
53 >
54
55
56 shouldn't that be EROOT ?

Replies