|
16 | 16 | from urlparse import urlparse
|
17 | 17 | except ImportError:
|
18 | 18 | from urllib.parse import urlparse
|
19 |
| -from pythonforandroid.logger import (logger, info, warning, debug, shprint, info_main) |
20 |
| -from pythonforandroid.util import (current_directory, ensure_dir, |
21 |
| - BuildInterruptingException, rmdir, move) |
| 19 | +from pythonforandroid.logger import ( |
| 20 | + logger, info, warning, debug, shprint, info_main) |
| 21 | +from pythonforandroid.util import ( |
| 22 | + current_directory, ensure_dir, BuildInterruptingException, rmdir, move, |
| 23 | + touch) |
22 | 24 | from pythonforandroid.util import load_source as import_recipe
|
23 | 25 |
|
24 | 26 |
|
@@ -395,7 +397,7 @@ def download(self):
|
395 | 397 |
|
396 | 398 | shprint(sh.rm, '-f', marker_filename)
|
397 | 399 | self.download_file(self.versioned_url, filename)
|
398 |
| - shprint(sh.touch, marker_filename) |
| 400 | + touch(marker_filename) |
399 | 401 |
|
400 | 402 | if exists(filename) and isfile(filename):
|
401 | 403 | for alg, expected_digest in expected_digests.items():
|
@@ -530,7 +532,7 @@ def apply_patches(self, arch, build_dir=None):
|
530 | 532 | patch.format(version=self.version, arch=arch.arch),
|
531 | 533 | arch.arch, build_dir=build_dir)
|
532 | 534 |
|
533 |
| - shprint(sh.touch, join(build_dir, '.patched')) |
| 535 | + touch(join(build_dir, '.patched')) |
534 | 536 |
|
535 | 537 | def should_build(self, arch):
|
536 | 538 | '''Should perform any necessary test and return True only if it needs
|
|
0 commit comments