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

[action] [PR:13812] [Build] Remove the additional space character in the mirrors.list file #15475

Merged
merged 1 commit into from
Jun 19, 2023

Commits on Jun 15, 2023

  1. [Build] Remove the additional space character in the mirrors.list file (

    sonic-net#13812)
    
    Why I did it
    Fix all mirror is commented out in sources.list in slave image issue. It will have an issue when installing more packages in the slave container.
    
    It will add additional space character after running add-apt-repository command.
    
    For example:
    The original config in /etc/apt/sources.list
    
    #deb [arch=amd64] http://deb.debian.org/debian/ bullseye main contrib non-free
    Run the following command:
    
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable"
    Then the setting changed to: (added a new space character after #)
    
    # deb [arch=amd64] http://deb.debian.org/debian/ bullseye main contrib non-free
    How I did it
    Fix the regex string to add the space pattern. After fixed, whether there is a space character or not, it will not be an issue.
    
    How to verify it
    xumia authored and mssonicbld committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    c1f59e8 View commit details
    Browse the repository at this point in the history