Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mons/commands/mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ def resolve(
"{resolve_count} dependency missing",
"{resolve_count} dependencies missing",
len(deps_missing) + len(deps_outdated),
).format(len(deps_missing) + len(deps_outdated))
).format(resolve_count=len(deps_missing) + len(deps_outdated))
if deps_outdated:
msg += " or outdated"
echo(msg)
Expand Down
2 changes: 1 addition & 1 deletion mons/modmeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, name: str, version: t.Union[str, Version]):

@classmethod
def _from_dict(cls, data: t.Dict[str, t.Any]):
return cls(str(data["Name"]), str(data.get("Version", NOVERSION)))
return cls(str(data["Name"]), str(data.get("Version", NOVERSION())))

def __repr__(self) -> str:
return f"{self.Name}: {self.Version}"
Expand Down
2 changes: 2 additions & 0 deletions mons/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def satisfies(self, required: "Version"):
# Special case: Always True if version == 0.0.*
if self.Major == 0 and self.Minor == 0:
return True
if required.Major == 0 and required.Minor == 0:
return True

# Major version, breaking changes, must match.
if self.Major != required.Major:
Expand Down