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

do not change the order of the remotes #614

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cpt/remotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def add_remotes_to_conan(self):
for r in self._remotes:
if self._upload and r.url == self._upload.url:
name = self._add_remote(self._upload.url, self._upload.use_ssl,
self._upload.name, insert=-1)
self._upload.name, insert=None)
else:
name = self._add_remote(r.url, r.use_ssl, r.name, insert=-1)
name = self._add_remote(r.url, r.use_ssl, r.name, insert=None)

if name != r.name: # Already existing url, keep it
_added_remotes.append(Remote(r.url, r.use_ssl, name))
Expand All @@ -87,7 +87,7 @@ def add_remotes_to_conan(self):

if self._upload and not self.upload_remote_in_remote_list():
name = self._add_remote(self._upload.url, self._upload.use_ssl,
self._upload.name, insert=-1)
self._upload.name, insert=None)
if name != self._upload.name: # Already existing url, keep it
self._upload = Remote(self._upload.url, self._upload.use_ssl, name)

Expand Down