[python-rtslib] fix tabs

Andy Grover grover at fedoraproject.org
Fri Jun 7 22:51:46 UTC 2013


commit 026774bf668dcf954e15ad631be1e4292ba687eb
Author: Andy Grover <agrover at redhat.com>
Date:   Fri Jun 7 15:36:58 2013 -0700

    fix tabs
    
    Signed-off-by: Andy Grover <agrover at redhat.com>

 python-rtslib-fix-tabs.patch |   32 ++++++++++++++++++++++++++++++++
 python-rtslib.spec           |    3 +++
 2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/python-rtslib-fix-tabs.patch b/python-rtslib-fix-tabs.patch
new file mode 100644
index 0000000..9f9fc24
--- /dev/null
+++ b/python-rtslib-fix-tabs.patch
@@ -0,0 +1,32 @@
+commit 44223d7bd966164387fbaaade7da58fad617f427
+Author: Andy Grover <agrover at redhat.com>
+Date:   Fri Jun 7 15:31:34 2013 -0700
+
+    tabs -> spaces
+    
+    Signed-off-by: Andy Grover <agrover at redhat.com>
+
+diff --git a/rtslib/tcm.py b/rtslib/tcm.py
+index 4152a98..32d53ee 100644
+--- a/rtslib/tcm.py
++++ b/rtslib/tcm.py
+@@ -83,8 +83,8 @@ class StorageObject(CFSNode):
+         if not lines[0].startswith("PR_REG_START:"):
+             return
+ 
+-	reservations = []
+-	for line in lines:
++        reservations = []
++        for line in lines:
+             if line.startswith("PR_REG_START:"):
+                 res_list = []
+             elif line.startswith("PR_REG_END:"):
+@@ -92,7 +92,7 @@ class StorageObject(CFSNode):
+             else:
+                 res_list.append(line.strip())
+ 
+-	for res in reservations:
++        for res in reservations:
+             fwrite(self.path + "/pr/res_aptpl_metadata", ",".join(res))
+ 
+     @classmethod
diff --git a/python-rtslib.spec b/python-rtslib.spec
index 9765bed..cb0e357 100644
--- a/python-rtslib.spec
+++ b/python-rtslib.spec
@@ -12,6 +12,7 @@ Version:        2.1.fb35
 Release:        1%{?dist}
 URL:            https://fedorahosted.org/targetcli-fb/
 Source:         https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
+Patch0:         %{name}-fix-tabs.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 BuildRequires:  python-devel epydoc
@@ -45,6 +46,7 @@ API for generic Linux SCSI kernel target.
 
 %prep
 %setup -q -n %{oname}-%{version}
+%patch0 -p1
 
 %if 0%{?with_python3}
 rm -rf %{py3dir}
@@ -93,6 +95,7 @@ rm -rf %{buildroot}
 %changelog
 * Fri Jun 7 2013 Andy Grover <agrover at redhat.com> - 2.1.fb35-1
 - New upstream version
+- add fix-tabs.patch
 
 * Thu May 9 2013 Andy Grover <agrover at redhat.com> - 2.1.fb34-1
 - New upstream version


More information about the scm-commits mailing list