Revision: 11316
          http://gar.svn.sourceforge.net/gar/?rev=11316&view=rev
Author:   wahwah
Date:     2010-10-16 00:23:40 +0000 (Sat, 16 Oct 2010)

Log Message:
-----------
submitpkg: Reporting an error when one architecture is missing.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py

Modified: csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py
===================================================================
--- csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py     2010-10-16 00:23:21 UTC 
(rev 11315)
+++ csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py     2010-10-16 00:23:40 UTC 
(rev 11316)
@@ -224,6 +224,15 @@
     remote_package_files.append(dst_arg)
     package_base_file_name = os.path.split(p)[1]
     remote_package_references.append(dst_arg + "/" + package_base_file_name)
+  fc = FileSetChecker()
+  error_tags = fc.CheckFiles(files_to_rsync)
+  if error_tags:
+    for error_tag in error_tags:
+      print error_tag
+    print(
+        "There is a package that is available for one architecture, "
+        "but not the other.")
+    sys.exit(1)
   if options.clean:
     RemoveOldFiles(catalognames, target_host, target_dir)
   if options.dry_run:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
devel mailing list
devel@lists.opencsw.org
https://lists.opencsw.org/mailman/listinfo/devel

Reply via email to