Skip to content

Commit

Permalink
Provide feat info for Armbian
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Aug 27, 2024
1 parent 383c610 commit eb0183c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/chsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
* | BlockLune <blocklune@gmail.com>
* |
* Created On : <2023-08-28>
* Last Modified : <2024-08-23>
* Last Modified : <2024-08-27>
*
* chsrc: Change Source —— 全平台通用命令行换源工具
* ------------------------------------------------------------*/

#define Chsrc_Version "0.1.8"
#define Chsrc_Release_Date "2024/08/23"
#define Chsrc_Version "0.1.8.dev1"
#define Chsrc_Release_Date "2024/08/27"
#define Chsrc_Banner_Version "v" Chsrc_Version "-" Chsrc_Release_Date
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
Expand Down
25 changes: 21 additions & 4 deletions src/recipe/os/APT/Armbian.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* File Authors : Shengwei Chen <414685209@qq.com>
* Contributors : Aoran Zeng <ccmywish@qq.com>
* Created On : <2024-06-14>
* Last Modified : <2024-08-16>
* Last Modified : <2024-08-27>
* ------------------------------------------------------------*/

/**
Expand Down Expand Up @@ -32,7 +32,9 @@ os_armbian_getsrc (char *option)
return;
}

chsrc_error2 ("缺少源配置文件!路径:" OS_Armbian_SourceList);
char *msg = CliOpt_InEnglish ? "Source list config file missing! Path: " OS_Armbian_SourceList
: "缺少源配置文件!路径:" OS_Armbian_SourceList;
chsrc_error2 (msg);
}

/**
Expand All @@ -54,6 +56,21 @@ os_armbian_setsrc (char *option)
chsrc_run ("apt update", RunOpt_No_Last_New_Line);
chsrc_conclude (&source, ChsrcTypeAuto);
}
#undef OS_Armbian_SourceList

def_target(os_armbian);

FeatInfo
os_armbian_feat (char *option)
{
FeatInfo fi = {0};

fi.can_get = true;
fi.can_reset = false;

fi.stcan_locally = CanNot;
fi.can_english = true;
fi.can_user_define = true;

return fi;
}

def_target_gsf(os_armbian);

0 comments on commit eb0183c

Please sign in to comment.