Check and report usage of custom apt sources

This commit is contained in:
Alexandre Aubin 2019-03-09 19:36:52 +01:00
parent fbcdf54cdf
commit af751292ca

View file

@ -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: