fix tabs
Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
parent
40d2e61298
commit
026774bf66
32
python-rtslib-fix-tabs.patch
Normal file
32
python-rtslib-fix-tabs.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
commit 44223d7bd966164387fbaaade7da58fad617f427
|
||||||
|
Author: Andy Grover <agrover@redhat.com>
|
||||||
|
Date: Fri Jun 7 15:31:34 2013 -0700
|
||||||
|
|
||||||
|
tabs -> spaces
|
||||||
|
|
||||||
|
Signed-off-by: Andy Grover <agrover@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
|
@ -12,6 +12,7 @@ Version: 2.1.fb35
|
|||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: https://fedorahosted.org/targetcli-fb/
|
URL: https://fedorahosted.org/targetcli-fb/
|
||||||
Source: https://fedorahosted.org/released/targetcli-fb/%{oname}-%{version}.tar.gz
|
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)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python-devel epydoc
|
BuildRequires: python-devel epydoc
|
||||||
@ -45,6 +46,7 @@ API for generic Linux SCSI kernel target.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
@ -93,6 +95,7 @@ rm -rf %{buildroot}
|
|||||||
%changelog
|
%changelog
|
||||||
* Fri Jun 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb35-1
|
* Fri Jun 7 2013 Andy Grover <agrover@redhat.com> - 2.1.fb35-1
|
||||||
- New upstream version
|
- New upstream version
|
||||||
|
- add fix-tabs.patch
|
||||||
|
|
||||||
* Thu May 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb34-1
|
* Thu May 9 2013 Andy Grover <agrover@redhat.com> - 2.1.fb34-1
|
||||||
- New upstream version
|
- New upstream version
|
||||||
|
Loading…
Reference in New Issue
Block a user