Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find how to 'apt-get update' of a specific debian package #578

Closed
Tracked by #569
hyunsik-yoon opened this issue May 10, 2022 · 2 comments
Closed
Tracked by #569

Find how to 'apt-get update' of a specific debian package #578

hyunsik-yoon opened this issue May 10, 2022 · 2 comments
Assignees

Comments

@hyunsik-yoon
Copy link
Contributor

hyunsik-yoon commented May 10, 2022

If backend is provided from a debian repo, let's update apt cache only for a specific debian repo.

from #569 (comment)


If the artifactory data is changed when user requests toolchain lists, how can we control this situation?

Maybe we can have setInterval() that keeps calling apt-get update one or twice per day while ONE-vscode is up and running.
However, some users may not call apt-get update so we may need to find out some way to call apt-get update for backend Debian repo.

@hyunsik-yoon hyunsik-yoon changed the title Find how to <code class="notranslate">apt-get update` of a specific debian package Find how to 'apt-get update' of a specific debian package May 10, 2022
@hyunsik-yoon
Copy link
Contributor Author

The following command may work:

sudo apt-get update -o Dir::Etc::sourcelist=${SOURCELIST}" \
    -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

@hyunsik-yoon hyunsik-yoon self-assigned this May 11, 2022
@hyunsik-yoon
Copy link
Contributor Author

If a package needs latest version of other package (which should be updated with apt-get update), this command may fail.
Let's use apt-get update for now.

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

No branches or pull requests

1 participant