Salome HOME
bug fix in generate command
[tools/sat.git] / commands / package.py
index df1e5e6220b925ccb06853f99fa3b02a59caae2c..a3b60830ffeeca2d5e42b1d601c6ec4e2743e00e 100644 (file)
@@ -265,7 +265,7 @@ def binary_package(config, logger, options, tmp_working_dir):
                                                      launcher_name,
                                                      binaries_dir_name)
     
-    d_products["launcher"] = (launcher_package, launcher_name)
+        d_products["launcher"] = (launcher_package, launcher_name)
     
     return d_products
 
@@ -290,7 +290,7 @@ def source_package(sat, config, logger, options, tmp_working_dir):
     d_archives, l_pinfo_vcs = get_archives(config, logger)
     logger.write("Done\n")
     d_archives_vcs = {}
-    if not options.with_vcs:
+    if not options.with_vcs and len(l_pinfo_vcs) > 0:
         # Make archives with the products that are not prepared using an archive
         # (git, cvs, svn, etc)
         logger.write("Construct archives for vcs products ... ")