From 13d7664bf0bb70e17998b1fabecba05742ce760f Mon Sep 17 00:00:00 2001 From: Bastian Doerig Date: Tue, 6 Dec 2022 07:10:30 +0100 Subject: [PATCH] do not change the order of the remotes --- cpt/remotes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpt/remotes.py b/cpt/remotes.py index f4a4c262..46c3c8dc 100644 --- a/cpt/remotes.py +++ b/cpt/remotes.py @@ -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)) @@ -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)