Skip to content

Commit

Permalink
Switch to executor 1.3 which supports execute(command, fakeroot=True)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jun 7, 2014
1 parent 3e192d7 commit e063bab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions deb_pkg_tools/__init__.py
@@ -1,11 +1,11 @@
# Debian packaging tools.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: June 5, 2014
# Last Change: June 7, 2014
# URL: https://github.com/xolox/python-deb-pkg-tools

# Semi-standard module versioning.
__version__ = '1.20.5'
__version__ = '1.20.6'

debian_package_dependencies = (
'apt', # apt-get
Expand Down
8 changes: 4 additions & 4 deletions deb_pkg_tools/package.py
@@ -1,7 +1,7 @@
# Debian packaging tools: Package manipulation.
#
# Author: Peter Odding <peter@peterodding.com>
# Last Change: June 1, 2014
# Last Change: June 7, 2014
# URL: https://github.com/xolox/python-deb-pkg-tools

"""
Expand Down Expand Up @@ -406,16 +406,16 @@ def build_package(directory, repository=None, check_package=True, copy_files=Tru
# Make sure all files included in the package are owned by `root'
# (the only account guaranteed to exist on all systems).
logger.debug("Resetting file ownership (to root:root) ..")
execute('fakeroot', 'chown', '-R', 'root:root', build_directory, logger=logger)
execute('chown', '-R', 'root:root', build_directory, fakeroot=True, logger=logger)
# System packages generally install files that are read only and
# readable (and possibly executable) for everyone (owner, group and
# world) so we'll go ahead and remove some potentially harmful
# permission bits (harmful enough that Lintian complains about them).
logger.debug("Resetting file modes (go-w) ..")
execute('fakeroot', 'chmod', '-R', 'go-w', build_directory, logger=logger)
execute('chmod', '-R', 'go-w', build_directory, fakeroot=True, logger=logger)
# Build the package using `dpkg-deb'.
logger.info("Building package in %s ..", format_path(build_directory))
execute('fakeroot', 'dpkg-deb', '--build', build_directory, package_file, logger=logger)
execute('dpkg-deb', '--build', build_directory, package_file, fakeroot=True, logger=logger)
# Check the package for possible issues using Lintian?
if check_package:
if not os.access('/usr/bin/lintian', os.X_OK):
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
@@ -1,6 +1,6 @@
# Direct dependencies of deb-pkg-tools.
coloredlogs >= 0.4.6
executor >= 1.1
executor >= 1.3
humanfriendly >= 1.8.2
python-debian >= 0.1.21-nmu2
# Undocumented transitive dependency of python-debian...
Expand Down

0 comments on commit e063bab

Please sign in to comment.