Skip to content

Commit b846bd2

Browse files
Set version to 'rolling' for Arch-based distributions
Co-authored-by: SomethingGeneric <[email protected]>
1 parent f8d2d73 commit b846bd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

miniupdate/os_detector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ def _parse_os_info(self, uname_info: Dict[str, str],
209209
# Clean up distribution name
210210
distribution = self._normalize_distribution_name(distribution)
211211

212+
# Set version for rolling release distributions
213+
if distribution in ['arch', 'manjaro'] and version == 'unknown':
214+
version = 'rolling'
215+
212216
return os_family, distribution, version
213217

214218
def _normalize_distribution_name(self, distribution: str) -> str:

0 commit comments

Comments
 (0)