@@ -67,6 +67,8 @@ def checkOasisCVMFS(packagename,version,dirtag):
67
67
folder_name = "evtgen-"
68
68
elif packagename .replace ("\" " ,"" ) == "hepmc" :
69
69
folder_name = "HepMC-"
70
+ elif packagename .replace ("\" " ,"" ) == "diracxx" :
71
+ folder_name = "Diracxx-"
70
72
else :
71
73
folder_name = folder_name + "-"
72
74
@@ -95,10 +97,10 @@ def main(argv):
95
97
pushcmd = "mysql --host=" + dbhost + " --database=" + dbname + " --user=" + dbuser #+"<tables.sql"
96
98
97
99
p = subprocess .Popen (pushcmd .split (" " ),stdin = subprocess .PIPE )
98
- stdout ,stderr = p .communicate (file ("/work/halld2/home/tbritton/GlueX_Software /build_scripts/vsdb/tables.sql" ).read ())
100
+ stdout ,stderr = p .communicate (file ("/group/halld/Software /build_scripts/vsdb/tables.sql" ).read ())
99
101
100
102
101
- reconpackcmd = "xsltproc /work/halld2/home/tbritton/GlueX_Software/ build_scripts/xml/packages_sql.xslt /work/halld2/home/tbritton/GlueX_Software /build_scripts/xml/packages.xml | grep INSERT | " + "mysql -h " + dbhost + " -D " + dbname + " -u " + dbuser
103
+ reconpackcmd = "xsltproc /group/halld/Software/ build_scripts/xml/packages_sql.xslt /group/halld/Software /build_scripts/xml/packages.xml | grep INSERT | " + "mysql -h " + dbhost + " -D " + dbname + " -u " + dbuser
102
104
#print reconpackcmd
103
105
104
106
ps = subprocess .Popen (reconpackcmd ,shell = True ,stdout = subprocess .PIPE ,stderr = subprocess .STDOUT )
@@ -124,14 +126,15 @@ def main(argv):
124
126
125
127
directories = os .listdir (loc )
126
128
for afile in directories :
127
- #if "_jlab" not in afile:
128
- # continue
129
+
129
130
if ".xml" not in afile :
130
131
continue
131
132
if "~" in afile :
132
133
continue
133
134
if afile == "version_jlab.xml" or afile == "version_set_correlations.xml" or afile == "version.xml" :
134
135
continue
136
+ #if "test" in afile:
137
+ # continue
135
138
# ADD afile to versionset. Get that version set id
136
139
check_for_file = "SELECT id from versionSet where filename=\" " + afile + "\" ;"
137
140
#print check_for_file
@@ -185,12 +188,13 @@ def main(argv):
185
188
#if 'name' not in child.attrib:
186
189
# continue
187
190
check_package_num = "SELECT id from package where name=\" " + child .attrib ['name' ]+ "\" ;"
188
- # print check_package_num
191
+ print check_package_num
189
192
curs .execute (check_package_num )
190
193
num = curs .fetchall ()
191
194
192
195
ID = - 1
193
- #print num
196
+ print ("Getting ID number" )
197
+ print num
194
198
#if len(num[0])
195
199
if num [0 ]['id' ]:
196
200
ID = num [0 ]['id' ]
0 commit comments