[game-data-packager] 01/02: mass replace _debs -> _pkgs
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Wed Mar 15 11:16:55 UTC 2017
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 284d90e5e752b743677d058760ff2435f9912524
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Wed Mar 15 12:11:46 2017 +0100
mass replace _debs -> _pkgs
---
game_data_packager/build.py | 14 +++++++-------
game_data_packager/steam.py | 18 +++++++++---------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/game_data_packager/build.py b/game_data_packager/build.py
index 7a8bae8..f29be86 100644
--- a/game_data_packager/build.py
+++ b/game_data_packager/build.py
@@ -1547,11 +1547,11 @@ class PackagingTask(object):
self.verbose = getattr(args, 'verbose', False)
if self.packaging.__class__ is self.builder_packaging.__class__:
- preserve_debs = (getattr(args, 'destination', None) is not None)
- install_debs = getattr(args, 'install', True)
+ preserve_pkgs = (getattr(args, 'destination', None) is not None)
+ install_pkgs = getattr(args, 'install', True)
else:
- preserve_debs = True
- install_debs = False
+ preserve_pkgs = True
+ install_pkgs = False
if args.destination is None:
raise SystemExit('Must specify a destination when '
'building packages for a different packaging '
@@ -1567,7 +1567,7 @@ class PackagingTask(object):
if getattr(args, 'compress', None) is None:
# default to not compressing if we aren't going to install it
# anyway
- args.compress = preserve_debs
+ args.compress = preserve_pkgs
self.save_downloads = args.save_downloads
@@ -1652,11 +1652,11 @@ class PackagingTask(object):
rm_rf(os.path.join(self.get_workdir(), 'tmp'))
- if preserve_debs:
+ if preserve_pkgs:
for deb in debs:
print('generated "%s"' % os.path.abspath(deb))
- if install_debs:
+ if install_pkgs:
self.packaging.install_packages(debs, method=args.install_method,
gain_root=args.gain_root_command)
diff --git a/game_data_packager/steam.py b/game_data_packager/steam.py
index d339fee..be50e01 100644
--- a/game_data_packager/steam.py
+++ b/game_data_packager/steam.py
@@ -180,14 +180,14 @@ def run_steam_meta_mode(args, games):
logger.info('Please specify --all or --new to create desired packages.')
return
- preserve_debs = (getattr(args, 'destination', None) is not None)
- install_debs = getattr(args, 'install', True)
+ preserve_pkgs = (getattr(args, 'destination', None) is not None)
+ install_pkgs = getattr(args, 'install', True)
if getattr(args, 'compress', None) is None:
# default to not compressing if we aren't going to install it
# anyway
- args.compress = preserve_debs
+ args.compress = preserve_pkgs
- all_debs = set()
+ all_pkgs = set()
for shortname in sorted(found_games):
task = tasks[shortname]
@@ -230,18 +230,18 @@ def run_steam_meta_mode(args, games):
destination=destination)
rm_rf(os.path.join(task.get_workdir(), 'tmp'))
- if preserve_debs:
+ if preserve_pkgs:
for deb in debs:
print('generated "%s"' % os.path.abspath(deb))
- all_debs = all_debs.union(debs)
+ all_pkgs = all_pkgs.union(debs)
- if not all_debs:
+ if not all_pkgs:
logger.error('Unable to package any game.')
if workdir:
rm_rf(workdir)
raise SystemExit(1)
- if install_debs:
- packaging.install_packages(all_debs, args.install_method, args.gain_root_command)
+ if install_pkgs:
+ packaging.install_packages(all_pkgs, args.install_method, args.gain_root_command)
if workdir:
rm_rf(workdir)
--
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