Skip to content

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

Merged
xumia merged 1 commit intosonic-net:202111from
mssonicbld:cherry/202111/13812
Jun 19, 2023
Merged

[action] [PR:13812] [Build] Remove the additional space character in the mirrors.list file#15475
xumia merged 1 commit intosonic-net:202111from
mssonicbld:cherry/202111/13812

Conversation

@mssonicbld
Copy link
Collaborator

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
Work item tracking
  • Microsoft ADO (number only): 24266883

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

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

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
@mssonicbld
Copy link
Collaborator Author

Original PR: #13812

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xumia
Copy link
Collaborator

xumia commented Jun 19, 2023

All the checks have passed, merging the PR, it may be an issue of the Azure DevOps Checks.

@xumia xumia enabled auto-merge (squash) June 19, 2023 09:09
@xumia xumia disabled auto-merge June 19, 2023 09:09
@xumia
Copy link
Collaborator

xumia commented Jun 19, 2023

/easycla

@xumia xumia merged commit fd24451 into sonic-net:202111 Jun 19, 2023
@mssonicbld mssonicbld deleted the cherry/202111/13812 branch March 6, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants