rpms/gwibber/devel gwibber-2.30.0.1-use-makedirs.patch, NONE, 1.1 gwibber.spec, 1.40, 1.41

Tom Callaway spot at fedoraproject.org
Wed Apr 28 18:24:38 UTC 2010


Author: spot

Update of /cvs/pkgs/rpms/gwibber/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv2366/devel

Modified Files:
	gwibber.spec 
Added Files:
	gwibber-2.30.0.1-use-makedirs.patch 
Log Message:
fix ~/.cache/gwibber creation call

gwibber-2.30.0.1-use-makedirs.patch:
 log.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE gwibber-2.30.0.1-use-makedirs.patch ---
diff -up gwibber-2.30.0.1/gwibber/microblog/util/log.py.BAD gwibber-2.30.0.1/gwibber/microblog/util/log.py
--- gwibber-2.30.0.1/gwibber/microblog/util/log.py.BAD	2010-04-28 13:46:40.753315369 -0400
+++ gwibber-2.30.0.1/gwibber/microblog/util/log.py	2010-04-28 13:47:03.851189514 -0400
@@ -1,12 +1,12 @@
 from os.path import join, isdir, realpath
-from os import mkdir
+from os import makedirs
 import logging, logging.handlers
 
 import xdg.BaseDirectory
 
 cache_dir = realpath(join(xdg.BaseDirectory.xdg_cache_home, "gwibber"))
 if not isdir(cache_dir):
-  mkdir(cache_dir)
+  makedirs(cache_dir)
 
 LOG_FILENAME = join(cache_dir, "gwibber.log")
 loghandler = logging.handlers.RotatingFileHandler(


Index: gwibber.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gwibber/devel/gwibber.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -p -r1.40 -r1.41
--- gwibber.spec	28 Apr 2010 14:50:34 -0000	1.40
+++ gwibber.spec	28 Apr 2010 18:24:38 -0000	1.41
@@ -4,7 +4,7 @@
 
 Name:           gwibber
 Version:        %{basever}.1
-Release:        4%{?dist}
+Release:        5%{?dist}
 Epoch:          1
 Summary:        An open source microblogging client for GNOME developed with Python and GTK
 Group:          Applications/Internet
@@ -27,6 +27,10 @@ Patch1:		gwibber-2.30.0.1-notification-a
 # https://bugs.launchpad.net/bugs/571215
 Patch2:		gwibber-2.30.0.1-notify-icon-48.patch
 
+# Use os.makedirs (mkdir -p equiv) rather than os.mkdir (mkdir)
+# https://bugs.launchpad.net/bugs/571367
+Patch3:		gwibber-2.30.0.1-use-makedirs.patch
+
 Requires:	libsoup, python-pycurl, PyXML
 Requires:	python 
 Requires:	dbus-python >= 0.80.2
@@ -57,6 +61,7 @@ and GTK. It supports Twitter, Jaiku, Ide
 %patch0 -p1 -b .non-int-font-size-fix
 %patch1 -p1 -b .notification-area
 %patch2 -p1 -b .notify-icon-48
+%patch3 -p1 -b .makedirs
 
 sed -i -e '/^#! \?\//, 1d' $(find %{name} | grep "\.py$")
 
@@ -100,6 +105,9 @@ rm -rf %{buildroot}
 %{_datadir}/indicators/messages/applications/gwibber
 
 %changelog
+* Wed Apr 28 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-5
+- if ~/.cache/gwibber does not exist, create it with os.makedirs() not os.mkdir()
+
 * Wed Apr 28 2010 Tom "spot" Callaway <tcallawa at redhat.com> - 1:2.30.0.1-4
 - default notification icon size is now 48 x 48
 



More information about the scm-commits mailing list