adding repo to group from repo config

Bug #966972 reported by Elan Ruusamäe
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
poldek
Fix Committed
Undecided
Cactus

Bug Description

currently poldek supports defining groups:

[source]
name = _crs-fe-dcarousel
type = pndir
path = %{_prefix}/crs-fe-dcarousel/
auto = no
autoup = no

# group for whole project
[source]
type = group
name = crs
sources = %{_dist_repos} _crs _crs-fe-dcarousel

but i'd like to "add" repo to group via repo definition, this would make it more flexible to add sources to existing sourcename (just add new file contaning new [source] definition, no need to modify original "group")

[source]
name = _crs-fe-dcarousel
type = pndir
path = %{_prefix}/crs-fe-dcarousel/
auto = no
autoup = no
group = crs

Cactus (uzi18)
Changed in poldek:
assignee: nobody → Cactus (uzi18)
status: New → Confirmed
Revision history for this message
Cactus (uzi18) wrote :

Please test this patch :)

add line to some repos or just one:
group=test

poldek -n test

Do You think to upgrade it to sth like : groups=a,b,c is necessery or we can live it like that?

Cactus (uzi18)
Changed in poldek:
status: Confirmed → Fix Committed
Revision history for this message
Elan Ruusamäe (glen666) wrote :

seems you forgot some debug printf in:

# poldek --sn tsl --up -u blah
tsl -> dsl-repo1
tsl -> dsl-pld
tsl -> tsl-repo1
tsl -> tsl-pld
tsl -> th
Retrieving dsl-repo1::packages.ndir.md...

Revision history for this message
Elan Ruusamäe (glen666) wrote :

i don't understand your "groups=a,b,c" queston. so i guess leave as it is, or feel free to implement

Revision history for this message
Cactus (uzi18) wrote :

I was thinking about possibilty to add repo to couple of groups once ;)

Yes, forget about this one printf line, will be removed later :)

Revision history for this message
Cactus (uzi18) wrote :

at once ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.