[gnome-shell-search-fedora-packages] Use os.makedirs, not os.mkdir.
Ralph Bean ☃
ralph at fedoraproject.org
Tue Apr 2 00:51:06 UTC 2013
commit 36bc1f38423cb2b20f556084f16712eed729052b
Author: Ralph Bean <rbean at redhat.com>
Date: Mon Apr 1 20:50:47 2013 -0400
Use os.makedirs, not os.mkdir.
...shell-search-fedora-packages-fix-makedirs.patch | 25 ++++++++++++++++++++
gnome-shell-search-fedora-packages.spec | 7 ++++-
2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/gnome-shell-search-fedora-packages-fix-makedirs.patch b/gnome-shell-search-fedora-packages-fix-makedirs.patch
new file mode 100644
index 0000000..bb9426f
--- /dev/null
+++ b/gnome-shell-search-fedora-packages-fix-makedirs.patch
@@ -0,0 +1,25 @@
+From 3a39b33ce9befd4e31e7a20ba0d430e4fb30c355 Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Mon, 1 Apr 2013 20:44:26 -0400
+Subject: [PATCH] Fix for https://bugzilla.redhat.com/show_bug.cgi?id=947245
+
+---
+ gs_search_fedora_packages/daemon.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gs_search_fedora_packages/daemon.py b/gs_search_fedora_packages/daemon.py
+index e435f0f..4b366c6 100644
+--- a/gs_search_fedora_packages/daemon.py
++++ b/gs_search_fedora_packages/daemon.py
+@@ -124,7 +124,7 @@ class SearchFedoraPackagesService(dbus.service.Object):
+
+ def _initialize_icon_cache(self):
+ if not os.path.isdir(self._icon_cache_dir):
+- os.mkdir(self._icon_cache_dir)
++ os.makedirs(self._icon_cache_dir)
+
+ # Populate our in-memory cache from the file system
+ for filename in os.listdir(self._icon_cache_dir):
+--
+1.8.1.4
+
diff --git a/gnome-shell-search-fedora-packages.spec b/gnome-shell-search-fedora-packages.spec
index 4f898a1..bde2cc1 100644
--- a/gnome-shell-search-fedora-packages.spec
+++ b/gnome-shell-search-fedora-packages.spec
@@ -7,12 +7,13 @@
Name: gnome-shell-search-fedora-packages
Version: 1.1.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Search the Fedora Packages webapp from the gnome-shell
License: GPLv3+
URL: https://github.com/ralphbean/gnome-shell-search-fedora-packages
Source0: https://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
+Patch0: gnome-shell-search-fedora-packages-fix-makedirs.patch
BuildArch: noarch
@@ -36,6 +37,7 @@ search process.
%prep
%setup -q
+%patch0 -p1 -b .makedirs
rm -rf extension/schemas
@@ -95,6 +97,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%changelog
+* Mon Apr 01 2013 Ralph Bean <rbean at redhat.com> - 1.1.2-2
+- Patch fix for https://bugzilla.redhat.com/show_bug.cgi?id=947245
+
* Fri Mar 22 2013 Ralph Bean <rbean at redhat.com> - 1.1.2-1
- Include a shell extension.
- Configurable search prefix.
More information about the scm-commits
mailing list