Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync --ask only asks for one repository
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zomnut
n00b
n00b


Joined: 25 Aug 2012
Posts: 10

PostPosted: Tue Oct 08, 2024 6:51 pm    Post subject: emerge --sync --ask only asks for one repository Reply with quote

When I add --ask to emerge --sync, it only asks for verification on the first repository (the default gentoo one) and then proceeds to sync additional repositories regardless of my answer to that first prompt, even if that answer was no.

Code:
$ sudo emerge --sync --ask
Password:
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...                                                                                                                       [ ok ]
Do you want to sync your ebuild repository with the mirror at
rsync://81.91.253.252/gentoo-portage? [Yes/No] no

Quitting.

>>> Syncing repository 'steam-overlay' into '/var/db/repos/steam-overlay'...
/usr/sbin/git fetch origin --depth 1
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 18 (delta 10), reused 18 (delta 10), pack-reused 0 (from 0)
Unpacking objects: 100% (18/18), 2.64 KiB | 450.00 KiB/s, done.
From https://github.com/gentoo-mirror/steam-overlay
 + e14708f...1dc5a0d master     -> origin/master  (forced update)
/usr/sbin/git reset --merge refs/remotes/origin/master
=== Sync completed for steam-overlay

Action: sync for repo: gentoo, returned code = 130
Action: sync for repo: steam-overlay, returned code = 0


I would expect a confirmation for each repository sync, or at a minimum I would expect it to use the response given for each repository. Where is my understanding falling short?
Back to top
View user's profile Send private message
powerN00b
n00b
n00b


Joined: 11 Jul 2024
Posts: 5

PostPosted: Wed Oct 09, 2024 9:19 am    Post subject: Reply with quote

Code:
--sync Updates repositories, for which auto-sync, sync-type and sync-uri attributes are set in repos.conf. A  list  of  repos  or aliases can be specified, in which case they will be updated regardless of their auto-sync attribute.

/etc/portage/repos.conf
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20439

PostPosted: Wed Oct 09, 2024 6:08 pm    Post subject: Reply with quote

Seems like a bug to me.

And an old one at that:
https://bugs.gentoo.org/565386

Despite the title, 'sync-type' doesn't seem to be a limiting factor. The first few comments seem to be a conceptual solution that would work in the general case.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
zomnut
n00b
n00b


Joined: 25 Aug 2012
Posts: 10

PostPosted: Wed Oct 09, 2024 8:03 pm    Post subject: Reply with quote

2015, nice. Ultimately not a deal breaker for me. It only came up because I threw --ask into my EMERGE_DEFAULT_OPTS and the odd behaviour showed up immediately.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum