summaryrefslogtreecommitdiff
diff options
authorstanley31 <stanley.huang@canonical.com>2020-08-12 17:02:13 +0800
committerstanley31 <stanley.huang@canonical.com>2020-08-12 17:02:13 +0800
commitbeef0c9d8ecb3be587ed1e146776604524e8006b (patch)
treee5ba8becf2cf633f5005dd4915b82ff52f27478d
parentac08e3dc36a539dbad3a12388003d50f166ea4ac (diff)
Fix the rule to identify package in Ubuntu archive
Modify RE rule to identify the package in Ubuntu archive
-rwxr-xr-xbin/check-oem-package-source.py2
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"