Changeset 108032 in vbox for trunk/src/VBox/ValidationKit/common/utils.py
- Timestamp:
- Feb 3, 2025 5:10:51 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167305
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r107926 r108032 260 260 [ '/etc/oracle-release', '' ], 261 261 [ '/etc/redhat-release', '' ], 262 [ '/etc/S uSE-release', '' ],262 [ '/etc/SUSE-brand', '' ], 263 263 ]; 264 264 for sFile, sPrefix in asFiles: … … 266 266 try: 267 267 with open(sFile) as oFile: # pylint: disable=unspecified-encoding 268 sLine = oFile.readline();268 sLine = ''.join(oFile.readlines()); 269 269 except: 270 270 continue; 271 sLine = sLine.strip() 271 sLine = sLine.strip().replace("VERSION =", "") # suse tweek 272 272 if sLine: 273 273 sVersion += ' / ' + sPrefix + sLine;
Note:
See TracChangeset
for help on using the changeset viewer.