From af751292ca13c26b796b4f5fd98887ab1e0e89bc Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 9 Mar 2019 19:36:52 +0100 Subject: [PATCH] Check and report usage of custom apt sources --- package_linter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package_linter.py b/package_linter.py index ec190ca..805f4cf 100755 --- a/package_linter.py +++ b/package_linter.py @@ -520,6 +520,13 @@ class Script(): "You can use 'ynh_print_info' or 'ynh_script_progression' for this." ) + if self.name == "install" and self.contains("/etc/apt/sources.list"): + print_warning( + "[YEP-3.7] Adding custom apt repositories (or messing with apt's " + "sources.lists) is discouraged and should be avoided. " + "Please consider alternatives like downloading a .deb if possible." + ) + def main(): if len(sys.argv) != 2: