[csw-devel] SF.net SVN: gar:[14055] csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat Apr 2 14:06:04 CEST 2011
Revision: 14055
http://gar.svn.sourceforge.net/gar/?rev=14055&view=rev
Author: wahwah
Date: 2011-04-02 12:06:04 +0000 (Sat, 02 Apr 2011)
Log Message:
-----------
csw-upload-pkg: Reuse FileSetChecker
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
Modified: csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2011-04-02 12:05:31 UTC (rev 14054)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2011-04-02 12:06:04 UTC (rev 14055)
@@ -19,6 +19,7 @@
import rest
import struct_util
import subprocess
+import file_set_checker
BASE_URL = "http://buildfarm.opencsw.org"
@@ -493,6 +494,15 @@
os_release = options.os_release
if os_release:
os_release = struct_util.OsReleaseToLong(os_release)
+
+ # Check the file set.
+ fc = file_set_checker.FileSetChecker()
+ error_tags = fc.CheckFiles(args)
+ if error_tags:
+ for error_tag in error_tags:
+ print error_tag
+ sys.exit(1)
+
uploader = Srv4Uploader(args,
options.rest_url,
os_release=os_release,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list