[game-data-packager] 14/51: Fix some indentation

Simon McVittie smcv at debian.org
Fri Dec 29 01:23:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 39417acceb38f9a1dded27ed2aa25ecb33e8f311
Author: Simon McVittie <smcv at debian.org>
Date:   Tue Dec 26 17:43:35 2017 +0000

    Fix some indentation
    
    Signed-off-by: Simon McVittie <smcv at debian.org>
---
 game_data_packager/build.py | 52 ++++++++++++++++++++++-----------------------
 1 file changed, 26 insertions(+), 26 deletions(-)

diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 0feeed8..cbefed6 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1143,19 +1143,19 @@ class PackagingTask(object):
 
             licenses = set()
             for f in (package.install_files | package.optional_files):
-                 if self.file_status[f.name] is not FillResult.COMPLETE:
-                     continue
-                 if not f.license:
-                     continue
-                 license_file = f.install_as
-                 licenses.add(os.path.join('/',
-                     self.packaging.substitute('$pkglicensedir', package.name),
-                     license_file))
-                 if os.path.splitext(license_file)[0].lower() == 'license':
-                     self.packaging.override_lintian(destdir, package.name,
-                             'extra-license-file',
-                             'usr/share/doc/%s/%s' % (package.name,
-                                 license_file))
+                if self.file_status[f.name] is not FillResult.COMPLETE:
+                   continue
+                if not f.license:
+                    continue
+                license_file = f.install_as
+                licenses.add(os.path.join('/',
+                    self.packaging.substitute('$pkglicensedir', package.name),
+                    license_file))
+                if os.path.splitext(license_file)[0].lower() == 'license':
+                    self.packaging.override_lintian(destdir, package.name,
+                            'extra-license-file',
+                            'usr/share/doc/%s/%s' % (package.name,
+                                license_file))
 
             if self.package_components[package.name] == 'local':
                 o.write('It contains proprietary game data '
@@ -1181,19 +1181,19 @@ class PackagingTask(object):
             exts = set()
             count_doc = 0
             for f in (package.install_files | package.optional_files):
-                 if self.file_status[f.name] is FillResult.IMPOSSIBLE:
-                     continue
-                 install_to = f.install_to
-                 if install_to and install_to.startswith('$pkgdocdir'):
-                     count_doc +=1
-                 elif install_to and install_to.startswith('$pkglicensedir'):
-                     pass
-                 else:
-                     count_usr +=1
-                     # doesn't have to be a .wad, ROTT's EXTREME.RTL
-                     # or any other one-datafile .deb would qualify too
-                     main_wad = f.install_as
-                     exts.add(os.path.splitext(main_wad.lower())[1])
+                if self.file_status[f.name] is FillResult.IMPOSSIBLE:
+                    continue
+                install_to = f.install_to
+                if install_to and install_to.startswith('$pkgdocdir'):
+                    count_doc +=1
+                elif install_to and install_to.startswith('$pkglicensedir'):
+                    pass
+                else:
+                    count_usr +=1
+                    # doesn't have to be a .wad, ROTT's EXTREME.RTL
+                    # or any other one-datafile .deb would qualify too
+                    main_wad = f.install_as
+                    exts.add(os.path.splitext(main_wad.lower())[1])
 
             # XXX: this doesn't handle lgeneral or other externaly generated files
             if package.rip_cd:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list