Skip to content

Commit

Permalink
cleanup, minor improvements and fixes, release
Browse files Browse the repository at this point in the history
  • Loading branch information
PJDude committed Mar 7, 2024
1 parent 82005e3 commit 48e4c22
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ jobs:
tag_name: ${{ steps.version.outputs.version }}
name: Dude ${{ steps.version.outputs.version }}
draft: false
prerelease: true
prerelease: false
files: |
dude.${{ steps.version.outputs.version }}.portable.linux.zip
dude.${{ steps.version.outputs.version }}.portable.linux.nuitka.zip
Expand Down
6 changes: 3 additions & 3 deletions src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,16 +725,16 @@ def check_group_files_state(self,size,crc):
try:
stat_res = stat(full_path)
except Exception as e:
self.log.error('check_group_files_state: %s',e)
self.log.error(f'check_group_files_state:{e}')
res_problems_append('%s|RED' % e)
problem=True
else:
if stat_res.st_nlink>1:
res_problems_append('file became hardlink:%s - %s,%s,%s' % (stat_res.st_nlink,pathnr,path,file_name) )
res_problems_append(f'file became hardlink:{stat_res.st_nlink},{pathnr},{path},{file_name}')
problem=True
else:
if (size,ctime,dev,inode) != (stat_res.st_size,stat_res.st_ctime_ns,stat_res.st_dev,stat_res.st_ino):
res_problems_append('file changed:%s,%s,%s,%s vs %s,%s,%s,%s' % (size,ctime,dev,inode,stat_res.st_size,stat_res.st_ctime_ns,stat_res.st_dev,stat_res.st_ino) )
res_problems_append(f'file changed:{size},{ctime},{dev},{inode},{stat_res.st_size},{stat_res.st_ctime_ns},{stat_res.st_dev},{stat_res.st_ino}' )
problem=True
if problem:
index_tuple=(pathnr,path,file_name,ctime,dev,inode)
Expand Down
Loading

0 comments on commit 48e4c22

Please sign in to comment.