420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
|
def valid(self, newpl):
id = newpl.get("$name", "__invalid")
have_ver = self.have.get(id, {}).get("version", "0")
if id.find("__") == 0:
pass
elif newpl.get("api") not in ("python", "streamtuner2"):
pass
elif newpl.get("status") not in ("obsolete", "broken"):
pass
elif have_ver >= newpl.get("version", "0.0"):
pass
else:
return True
# Split trivial "pkg, mod >= 1, uikit < 4.0" list
|
|
|
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
|
def valid(self, newpl):
id = newpl.get("$name", "__invalid")
have_ver = self.have.get(id, {}).get("version", "0")
if id.find("__") == 0:
pass
elif newpl.get("api") not in ("python", "streamtuner2"):
pass
elif set((newpl.get("status"), newpl.get("priority"))).intersection(set(("obsolete", "broken"))):
pass
elif have_ver >= newpl.get("version", "0.0"):
pass
else:
return True
# Split trivial "pkg, mod >= 1, uikit < 4.0" list
|