-
Notifications
You must be signed in to change notification settings - Fork 107
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
[BUG] [Ubuntu] System repositories are not restored on epicli re-run #2894
Closed
10 tasks done
Labels
Comments
Analysis:
|
cicharka
added a commit
to cicharka/epiphany
that referenced
this issue
Jan 19, 2022
This was
linked to
pull requests
Jan 19, 2022
cicharka
added a commit
to cicharka/epiphany
that referenced
this issue
Jan 19, 2022
✔️ Tested multiple times |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Assuming the build fails, the system repositories should be restored on re-run to be able to download the requirements and proceed with the installation. However, the script fails as it cannot locate packages to download:
The reason is that the condition to restore system repos is
if [[ ! -f /etc/apt/sources.list ]]; then
https://github.com/epiphany-platform/epiphany/blob/develop/ansible/playbooks/roles/repository/files/download-requirements/ubuntu-20.04/download-requirements.sh#L60
However, there is a case that this file actually exists (that's why the condition is not met) but it's empty.
Probably it gets created by some system job/apt tool.
How to reproduce
Steps to reproduce the behavior:
epicli apply
epicli apply
againExpected behavior
The build should be successful on re-run.
Config files
If applicable, add config files to help explain your problem.
Environment
epicli version: v1.3.0, develop
Additional context
Add any other context about the problem here.
DoD checklist
The text was updated successfully, but these errors were encountered: