From: | "Joe Sapp (nixphoeni)" <nixphoeni@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-plugins/desklet-ImageSlideShow/files: ImageSlideShow-0.8-cache-dir.patch |
Date: | Thu, 10 Sep 2009 02:19:58 |
Message-Id: | E1MlZGN-0008N0-Vs@stork.gentoo.org |
1 | nixphoeni 09/09/10 02:19:55 |
2 | |
3 | Added: ImageSlideShow-0.8-cache-dir.patch |
4 | Log: |
5 | Patched to try to fix bug #271777 |
6 | (Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 x11-plugins/desklet-ImageSlideShow/files/ImageSlideShow-0.8-cache-dir.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/desklet-ImageSlideShow/files/ImageSlideShow-0.8-cache-dir.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/desklet-ImageSlideShow/files/ImageSlideShow-0.8-cache-dir.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: ImageSlideShow-0.8-cache-dir.patch |
15 | =================================================================== |
16 | --- ImageSlideShow/__init__.py.orig 2008-01-15 16:36:23.000000000 +0100 |
17 | +++ ImageSlideShow/__init__.py 2009-05-10 16:57:27.000000000 +0200 |
18 | @@ -45,11 +45,10 @@ |
19 | self.__previous_width = 300 |
20 | |
21 | #Cache folder |
22 | - #folder = os.path.expanduser("~") + "/" + ".cache2/imageslideshow" |
23 | - folder = "/tmp/imageslideshow" |
24 | + folder = os.path.expanduser("~") + "/" + ".thumbnails/imageslideshow" |
25 | debugger("cache folder is:" + folder) |
26 | if not os.path.isdir(folder): |
27 | - os.mkdir(folder) |
28 | + os.makedirs(folder) |
29 | |
30 | self.__thumbnail_folder=folder |
31 | |
32 | --- ImageSlideShow/directorywalk.py.orig 2009-05-02 20:42:41.000000000 +0200 |
33 | +++ ImageSlideShow/directorywalk.py 2009-05-28 18:57:51.000000000 +0200 |
34 | @@ -10,7 +10,7 @@ |
35 | st = os.lstat(os.path.join(top, name)) |
36 | except os.error: |
37 | continue |
38 | - if stat.S_ISDIR(st.st_mode): |
39 | + if stat.S_ISDIR(st.st_mode) or stat.S_ISLNK(st.st_mode): |
40 | for (newtop, children) in walktree (os.path.join(top, name), depthfirst): |
41 | yield newtop, children |
42 | if depthfirst: |