Skip to content

Commit

Permalink
fixing broken deletion of input files in merge by hltd
Browse files Browse the repository at this point in the history
v1.9.3-1
  • Loading branch information
smorovic committed Mar 14, 2016
1 parent a1d780c commit df74bb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions python/aUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,11 @@ def mergeDatInputs(self,destinationpath,doChecksum):
#delete input files
for input in self.inputs:
ifile = input.getFieldByName('Filelist')
if nproc==0:continue
try:os.remove(ifile)
except:pass
if not ifile:
continue
try:os.remove(os.path.join(dirname,ifile))
except Exception as ex:
self.logger.exception(ex)

self.setFieldByName("Filesize",json_size)
if doChecksum:
Expand Down
2 changes: 1 addition & 1 deletion scripts/hltdrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ cd $TOPDIR
cat > hltd.spec <<EOF
Name: hltd
Version: 1.9.3
Release: 0
Release: 1
Summary: hlt daemon
License: gpl
Group: DAQ
Expand Down

0 comments on commit df74bb2

Please sign in to comment.