Note that this bit needs to be ESM_ORIGINS, not esm_origins:
@@ -58,7 +61,7 @@ def isSecurityUpgrade(ver):
def isESMUpgrade(ver):
" check if the given version is a security update (or masks one) "
for (file, index) in ver.file_list:
- if file.origin == "UbuntuESM" and file.archive.startswith(DISTRO):
+ if file.origin in esm_origins and file.archive.startswith(DISTRO):
return True
return False
Note that this bit needs to be ESM_ORIGINS, not esm_origins:
@@ -58,7 +61,7 @@ def isSecurityUpgra de(ver) : startswith( DISTRO) : startswith( DISTRO) :
def isESMUpgrade(ver):
" check if the given version is a security update (or masks one) "
for (file, index) in ver.file_list:
- if file.origin == "UbuntuESM" and file.archive.
+ if file.origin in esm_origins and file.archive.
return True
return False