Skip to content

Commit 1683e1b

Browse files
committed
使用 apt-get
1 parent 26db607 commit 1683e1b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/recipe/os/APT/Termux.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ os_termux_prelude ()
1010
chef_prep_this (os_termux, gsr);
1111

1212
chef_set_created_on (this, "2025-03-04");
13-
chef_set_last_updated (this, "2025-08-10");
13+
chef_set_last_updated (this, "2026-01-21");
1414
chef_set_sources_last_updated (this, "2025-03-04");
1515

1616
chef_set_chef (this, NULL);
@@ -56,7 +56,6 @@ os_termux_getsrc (char *option)
5656
void
5757
os_termux_setsrc (char *option)
5858
{
59-
6059
// chsrc_ensure_root (); Termux下禁止使用root
6160

6261
chsrc_use_this_source (os_termux);
@@ -67,7 +66,7 @@ os_termux_setsrc (char *option)
6766
chsrc_run (cmd, RunOpt_Default);
6867

6968
chsrc_run ("apt-get update", RunOpt_Default);
70-
chsrc_run ("apt upgrade", RunOpt_Default);
69+
chsrc_run ("apt-get upgrade", RunOpt_Default);
7170

7271
chsrc_determine_chgtype (ChgType_Auto);
7372
chsrc_conclude (&source);

0 commit comments

Comments
 (0)