aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-05-16 10:30:09 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-05-16 12:17:46 -0400
commit9ad649be44c568a00f2f407d715d07cd585c2b25 (patch)
tree8f988e01568f1c07d3c815fac77016454e7fa9f5
parent28bd369bddbd492560856f2718e0f4353a5027ba (diff)
downloadstasis-9ad649be44c568a00f2f407d715d07cd585c2b25.tar.gz
Print directory structure as an ascii tree in verbose mode
-rw-r--r--src/deliverable.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index 36c2876..f72f535 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -1332,6 +1332,9 @@ int delivery_index_wheel_artifacts(struct Delivery *ctx) {
return -3;
}
+ if (globals.verbose) {
+ printf("+ %s\n", rec->d_name);
+ }
// Add record to top level index
fprintf(top_fp, "<a href=\"%s/\">%s</a><br/>\n", rec->d_name, rec->d_name);
@@ -1350,6 +1353,9 @@ int delivery_index_wheel_artifacts(struct Delivery *ctx) {
if (!endswith(package, ".whl")) {
continue;
}
+ if (globals.verbose) {
+ printf("`- %s\n", package);
+ }
// Write record to bottom level index
fprintf(bottom_fp, "<a href=\"%s\">%s</a><br/>\n", package, package);
}