Skip to content

Conversation

eatradish
Copy link
Member

No description provided.

@eatradish eatradish force-pushed the support-custom-sourceslist branch from ec4cdb8 to a801712 Compare September 22, 2025 09:37
@eatradish eatradish marked this pull request as draft September 22, 2025 09:42
@eatradish eatradish force-pushed the support-custom-sourceslist branch from a801712 to 889ac35 Compare September 22, 2025 09:57
@eatradish eatradish marked this pull request as ready for review September 22, 2025 10:05
@eatradish eatradish force-pushed the support-custom-sourceslist branch 2 times, most recently from 80719c0 to 5ea0063 Compare September 23, 2025 04:19
@eatradish eatradish force-pushed the support-custom-sourceslist branch from 5ea0063 to 28731ad Compare September 23, 2025 04:41
Copy link
Member

@MingcongBai MingcongBai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Option Dir::Etc::SourcesList did not function for refresh:

mingcongbai@JellyFocals [ oma@support-custom-sourceslist ] $ oma -o Dir::Etc::sourcelist=/tmp/a install fish
     INFO 请在弹出的密码框输入密码以授权 oma 执行系统管理操作。
     INFO 如果您无法操作该输入框,请按 Ctrl + C 退出并以管理员权限运行 oma。
     INFO 正在刷新本机软件包数据库 ...
    ERROR 无法找到匹配关键字 fish 的软件包。
    ERROR 您指定的操作未成功完成,请查阅上方输出。
mingcongbai@JellyFocals [ oma@support-custom-sourceslist ] ! oma -o Dir::Etc::sourcelist=/tmp/a refresh
     INFO 请在弹出的密码框输入密码以授权 oma 执行系统管理操作。
     INFO 如果您无法操作该输入框,请按 Ctrl + C 退出并以管理员权限运行 oma。
     INFO 正在刷新本机软件包数据库 ...
  SUCCESS 成功刷新本机软件包数据库。系统各软件包均为最新。

Same goes for install.

Copy link
Member

@MingcongBai MingcongBai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My mistake with the previous test, APT in fact uses:

  • Dir::Etc::SourceList (/etc/apt/sources.list)
  • Dir::Etc::sourceparts (/etc/apt/sources.list.d)

For sources.list settings. I have only overrode the first one and mistaken the output for oma-refresh failing to honour the options. Same went for Dir::Cache::Archives which only handles APT cache, but not the lists, which uses:

Dir::State "var/lib/apt";
Dir::State::lists "lists/";

This is to be handled with another pull request, as discussed with @eatradish.

A tangential bug was also found where the download directories were unconditionally set to 0755 permission, a hack we used to workaround old buggy AOSC OS bashrc configurations. Also terms for another pull request.

@eatradish eatradish merged commit 4e0a5ee into master Sep 23, 2025
8 checks passed
@eatradish eatradish deleted the support-custom-sourceslist branch September 23, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants