Use f-string? #6
Owner
ecg.py
Lines 162 to 163 in 2f779d0ab0
pkglist_process = subprocess.run("sha256sum " + pkg_file.name + " | cut -zd ' ' -f 1", cwd=path, capture_output=True, shell=True) |
|
pkg_row = pkg["name"] + "," + pkglist_process.stdout.decode("utf-8") + ",misc" |
ecg.py
Line 146 in 2f779d0ab0
format_process = subprocess.run("cat << EOF | " + pkgmgr_cmd[pkgmgr][1] + "\n" + pkglist_process.stdout.decode("utf-8") + "EOF", cwd=path, capture_output=True, shell=True) |
https://forge.chapril.org/GuilloteauQ/study-docker-repro-longevity/src/commit/2f779d0ab09ef81681999c91cfd9f3f27ab621ea/ecg.py#L162-L163
https://forge.chapril.org/GuilloteauQ/study-docker-repro-longevity/src/commit/2f779d0ab09ef81681999c91cfd9f3f27ab621ea/ecg.py#L146
Now using f-strings, closing #6. Made path-related cmd args required, closing #7. Used variables in check_env for readability, closing #5.
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?