From 0364b59d5b222425faf725ba52aef155e8a9ecc1 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 19 Apr 2016 14:47:05 -0400 Subject: library: helper functions: slbt_copy_file: properly call slbt_output_{mode}. --- src/helper/slbt_copy_file.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/helper/slbt_copy_file.c') diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c index a97c35c..158a760 100644 --- a/src/helper/slbt_copy_file.c +++ b/src/helper/slbt_copy_file.c @@ -30,9 +30,16 @@ int slbt_copy_file( /* step output */ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) { - if (slbt_output_link(dctx,ectx)) { - ectx->argv = oargv; - return -1; + if (dctx->cctx->mode == SLBT_MODE_LINK) { + if (slbt_output_link(dctx,ectx)) { + ectx->argv = oargv; + return -1; + } + } else { + if (slbt_output_install(dctx,ectx)) { + ectx->argv = oargv; + return -1; + } } } -- cgit v1.2.3