diff options
author | stanley31 <stanley.huang@canonical.com> | 2020-08-12 17:02:13 +0800 |
---|---|---|
committer | stanley31 <stanley.huang@canonical.com> | 2020-08-12 17:02:13 +0800 |
commit | beef0c9d8ecb3be587ed1e146776604524e8006b (patch) | |
tree | e5ba8becf2cf633f5005dd4915b82ff52f27478d | |
parent | ac08e3dc36a539dbad3a12388003d50f166ea4ac (diff) |
Fix the rule to identify package in Ubuntu archive
Modify RE rule to identify the package in Ubuntu archive
-rwxr-xr-x | bin/check-oem-package-source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/check-oem-package-source.py b/bin/check-oem-package-source.py index 1a12944..94e7f31 100755 --- a/bin/check-oem-package-source.py +++ b/bin/check-oem-package-source.py @@ -3,7 +3,7 @@ import os, sys, argparse import subprocess, re, json, copy DEFAULT_OEM_URL = r"http://\w*\.archive.canonical.com" -DEFAULT_UBUNTU_URL = r"http://\w*\.?archive.ubuntu.com" +DEFAULT_UBUNTU_URL = r"http://[\w.-]+/ubuntu" DEFAULT_SOURCE_DIR = "/etc/apt/sources.list.d/" UNSUPPORTED_CODENAME = ["bionic", "xenial", "trusty"] OEM_KEY = "OEM_Version" |