Skip to content

Commit

Permalink
trim install warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Aug 23, 2023
1 parent b5a14f1 commit 1e5cad6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions plugins/nf-quilt/src/main/nextflow/quilt/jep/QuiltPackage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class QuiltPackage {
}

try {
//log.debug("Installing `${pkg}` for.pkgKey $pkgKey")
log.debug("${pkg}: attempting install for.pkgKey $pkgKey (okay if fails)")
pkg.install()
}
catch (Exception e) {
Expand All @@ -110,7 +110,7 @@ class QuiltPackage {
}
}
catch (java.nio.file.NoSuchFileException e) {
//log.debug 'deleteDirectory: ignore non-existent files'
log.debug 'deleteDirectory: ignore non-existent files'
}
return true
}
Expand Down Expand Up @@ -226,7 +226,7 @@ class QuiltPackage {
def command = ['quilt3']
command.addAll(args)
cmd = command.join(' ')
//log.debug("call `${cmd}`")
log.debug("QuiltPackage.call `${cmd}`")

try {
ProcessBuilder pb = new ProcessBuilder('bash', '-c', cmd)
Expand All @@ -239,12 +239,12 @@ class QuiltPackage {
int exitCode = p.waitFor()
//log.debug("call.exitCode ${exitCode}")
if (exitCode != 0) {
//log.debug("`call.fail` rc=${exitCode}[${cmd}]: ${result}\n")
log.debug("`call.fail` rc=${exitCode}[${cmd}]: ${result}\n")
}
return exitCode
}
catch (Exception e) {
log.error("Failed `${cmd}` ${this}", e)
log.warning("${e.getMessage()}: `${cmd}` ${this}")
return -1
}
}
Expand All @@ -254,7 +254,7 @@ class QuiltPackage {
Path install() {
int exitCode = call('install', packageName, key_registry(), key_hash(), key_dest())
if (exitCode != 0) {
log.error("`install.fail.exitCode` ${exitCode}: ${packageName}")
log.warning("${exitCode}: ${packageName} failed to install (may not exist)")
return null
}
installed = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ final class QuiltPath implements Path, Comparable {

@Override
boolean isAbsolute() {
//log.debug("isAbsolute[${getPackageName()}]")
return filesystem && getPackageName()
}

Expand Down

0 comments on commit 1e5cad6

Please sign in to comment.