Skip to content

Commit

Permalink
Update nix_update/update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored Jan 4, 2025
1 parent 513b097 commit f74cf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix_update/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def replace_version(package: Package) -> bool:
break
with fileinput.FileInput(package.filename, inplace=True) as f:
for i, line in enumerate(f, 1):
if package.ref is not None and package.new_version.rev:
if package.rev is not None and package.new_version.rev:
line = line.replace(old_rev_tag, package.new_version.rev)
if (
not version_string_in_version_declaration
Expand Down

0 comments on commit f74cf98

Please sign in to comment.