mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: multiqc: Update to 0.9.
Suggested by Raoul Bonnal <ilpuccio.febo@gmail.com>. * gnu/packages/bioinformatics.scm (multiqc): Update to 0.9. [origin]: Add patch. * gnu/packages/patches/multiqc-fix-git-subprocess-error.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
This commit is contained in:
parent
95d7d0c57f
commit
a29929b32c
3 changed files with 24 additions and 2 deletions
16
gnu/packages/patches/multiqc-fix-git-subprocess-error.patch
Normal file
16
gnu/packages/patches/multiqc-fix-git-subprocess-error.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
Without this patch, the incorrect exception is caught when 'git' is not in
|
||||
PATH. See https://github.com/ewels/MultiQC/pull/377.
|
||||
|
||||
diff --git a/multiqc/utils/config.py b/multiqc/utils/config.py
|
||||
index 01fa554..4a11793 100755
|
||||
--- a/multiqc/utils/config.py
|
||||
+++ b/multiqc/utils/config.py
|
||||
@@ -28,7 +28,7 @@ try:
|
||||
git_hash = subprocess.check_output(['git', 'rev-parse', 'HEAD'], stderr=subprocess.STDOUT)
|
||||
git_hash_short = git_hash[:7]
|
||||
version = '{} ({})'.format(version, git_hash_short)
|
||||
-except subprocess.CalledProcessError:
|
||||
+except (subprocess.CalledProcessError, FileNotFoundError):
|
||||
pass
|
||||
os.chdir(cwd)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue