diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-01-27 15:51:24 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-01-28 19:47:00 +0100 |
| commit | 9d7a660611e9e134cd6d74a594bde59cad77c8d8 (patch) | |
| tree | c623e8ccc21e6030a2748673e2006a6d04f611c8 /cmdline | |
| parent | e13ee75d4b20ee94e8da1b7f2be61788029b6875 (diff) | |
apt: Introduce the modernize-sources command
This handles rewriting .list entries to .sources ones; the
only options handled are
- signed-by => Signed-By
- trusted => Trusted
The options to specify architectures, check-valid-until, etc.
are not supported as they are not exposed in the code. We
probably should refactor the parser at some point so we can
actually read the parsed entry rather than the abstract objects
we create from it.
This can be improved further:
- Keyrings from /etc/apt/trusted.gpg.d should be moved to
/etc/apt/keyrings.
- automatic detection by trying to verify using each keyring
in trusted.gpg.d until we find the right one and then using
that for Signed-By rather than leave some sources empty.
Diffstat (limited to 'cmdline')
| -rw-r--r-- | cmdline/apt.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmdline/apt.cc b/cmdline/apt.cc index ef58bcebf..af8a95fa5 100644 --- a/cmdline/apt.cc +++ b/cmdline/apt.cc @@ -78,6 +78,7 @@ static std::vector<aptDispatchWithHelp> GetCommands() /*{{{*/ // misc {"edit-sources", &EditSources, _("edit the source information file")}, + {"modernize-sources", &ModernizeSources, _("modernize .list files to .sources files")}, {"moo", &DoMoo, nullptr}, {"satisfy", &DoBuildDep, _("satisfy dependency strings")}, |
