fixed truncate
This commit is contained in:
@@ -195,7 +195,7 @@ def is_package_failed(package: str, ver: LegacyVersion, repo: str):
|
||||
|
||||
if s[0] == package:
|
||||
if ver > LegacyVersion(s[1]):
|
||||
with failed_l, open(os.path.join(config["basedir"]["repo"], repo + "_failed.txt")) as f:
|
||||
with failed_l, open(os.path.join(config["basedir"]["repo"], repo + "_failed.txt"), "r+") as f:
|
||||
d = f.readlines()
|
||||
f.seek(0)
|
||||
f.truncate()
|
||||
|
Reference in New Issue
Block a user