mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
userland: add assembly support
Move arm assembly cheat here, and start some work on x86 cheat as well.
This commit is contained in:
@@ -126,12 +126,12 @@ class ShellHelpers:
|
||||
src = os.path.join(srcdir, basename)
|
||||
if os.path.isfile(src):
|
||||
noext, ext = os.path.splitext(basename)
|
||||
if filter_ext is not None and ext == filter_ext:
|
||||
distutils.file_util.copy_file(
|
||||
src,
|
||||
os.path.join(destdir, basename),
|
||||
update=1,
|
||||
)
|
||||
dest = os.path.join(destdir, basename)
|
||||
if (
|
||||
(filter_ext is not None and ext == filter_ext) and
|
||||
(os.path.exists(dest) and os.path.getmtime(src) > os.path.getmtime(dest))
|
||||
):
|
||||
self.cp(src, dest)
|
||||
|
||||
def copy_dir_if_update(self, srcdir, destdir, filter_ext=None):
|
||||
self.copy_dir_if_update_non_recursive(srcdir, destdir, filter_ext)
|
||||
@@ -283,7 +283,9 @@ class ShellHelpers:
|
||||
#signal.signal(signal.SIGPIPE, sigpipe_old)
|
||||
returncode = proc.returncode
|
||||
if returncode != 0 and raise_on_failure:
|
||||
raise Exception('Command exited with status: {}'.format(returncode))
|
||||
e = Exception('Command exited with status: {}'.format(returncode))
|
||||
e.returncode = returncode
|
||||
raise e
|
||||
return returncode
|
||||
else:
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user