mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Merge pull request #62 from YunoHost/check-custom-apt-source
Check and report usage of custom apt sources
This commit is contained in:
commit
c0e3b2bbde
1 changed files with 7 additions and 0 deletions
|
@ -597,6 +597,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 check_source_common(self):
|
||||
|
||||
if self.name in ["backup", "restore"]:
|
||||
|
|
Loading…
Reference in a new issue