From 06ec69b82ec590e5c1b3b05a5e29f568e1c6efb5 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 8 Nov 2024 19:10:15 +0800 Subject: [PATCH] Implement `reset` for `Ubuntu` [GitHub #118 #111] --- src/recipe/os/APT/Ubuntu.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 68041e4..9507e8c 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -116,13 +116,20 @@ os_ubuntu_setsrc (char *option) } +void +os_ubuntu_resetsrc (char *option) +{ + os_ubuntu_setsrc (option); +} + + FeatInfo os_ubuntu_feat (char *option) { FeatInfo f = {0}; f.can_get = true; - f.can_reset = false; + f.can_reset = true; f.cap_locally = CanNot; f.locally = NULL; @@ -133,4 +140,4 @@ os_ubuntu_feat (char *option) return f; } -def_target_gsf(os_ubuntu); +def_target_gsrf(os_ubuntu);