[game-data-packager] 01/01: remove support for install_files_from_cksums
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Thu Nov 5 08:08:08 UTC 2015
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 333235e78f85cdeb44271f1e384f005e353ad5e7
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Thu Nov 5 09:06:14 2015 +0100
remove support for install_files_from_cksums
---
doc/adding_a_game.mdwn | 4 ----
doc/tags.txt | 1 -
game_data_packager/__init__.py | 17 -----------------
3 files changed, 22 deletions(-)
diff --git a/doc/adding_a_game.mdwn b/doc/adding_a_game.mdwn
index 0246197..09b5e75 100644
--- a/doc/adding_a_game.mdwn
+++ b/doc/adding_a_game.mdwn
@@ -91,10 +91,6 @@ The `install_files` item in a package (see below) can be used to flag
several files for installation and also provide their metadata
in the same format as `files`.
-The `install_files_from_cksums` item in a package can be used to flag
-several files for installation and also provide their sizes, using
-cksums(1) syntax.
-
#### Packages
The `packages` top-level item is a mapping from Debian binary package name
diff --git a/doc/tags.txt b/doc/tags.txt
index 45c89f9..1d5e80b 100644
--- a/doc/tags.txt
+++ b/doc/tags.txt
@@ -69,7 +69,6 @@ packages:
sha1:
sha256:
size:
- install_files_from_cksums: list
install_contents_of: list
files:
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index 78b6bc2..2834402 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -518,12 +518,6 @@ class GameData(object):
else:
raise AssertionError('try_repack_from should be str or list')
- # these should be per-package
- assert 'install_files' not in self.data
- assert 'package' not in self.data
- assert 'symlinks' not in self.data
- assert 'install_files_from_cksums' not in self.data
-
# True if the lazy load of full file info has been done
self.loaded_file_data = False
@@ -849,17 +843,6 @@ class GameData(object):
for filename in d['license']:
package.optional.add(filename)
- if 'install_files_from_cksums' in d:
- for line in d['install_files_from_cksums'].splitlines():
- stripped = line.strip()
- if stripped == '' or stripped.startswith('#'):
- continue
-
- _, size, filename = line.split(None, 2)
- f = self._ensure_file(filename)
- f.size = int(size)
- package.install.add(filename)
-
if 'version' in d:
package.version = d['version'] + '+' + GAME_PACKAGE_VERSION
--
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