How to specify the repo to use [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

How to specify the repo to use [Solved]

Postby sjieke » Fri Jul 18, 2008 8:25

I have rebuilded a package with different use flags and added it to my repo.
So my repo contains the new package with the same version as in the default sabayon repo but different use flags.

Now I update (equo update), equo detects the changes in my repo and does what it needs to do.
If I now search for that package (equo search <package name>) it returns 2 entries: one from the default sabayon repo and one from my community repo. The info shown is correct, the use flags are a bit different and also the dependencies (consequence of the use flags).

So far so good. But how would someone be able to select wich version he wants to install, because when you do
Code: Select all
equo install --pretend <package name>
it pulls the package from the default sabayon repo. I think it is logical that the sabayon repo is choosen when the versions are the same, but how can you specify you want the version from another repo (with other use flags)?
Last edited by sjieke on Fri Jul 25, 2008 9:53, edited 1 time in total.
sjieke
Technological Hen
 
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: How to specify the repo to use

Postby sjieke » Thu Jul 24, 2008 10:39

So nobody who knows how to specify which repo to use for a package that is available in multiple repos?
Not even the devs?
sjieke
Technological Hen
 
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: How to specify the repo to use

Postby Thev00d00 » Thu Jul 24, 2008 20:01

It should pull the community repo version over the sabayon one, you have to make sure you specify a package carefully however. For instance if you have recompiled foo v1.0, but sabayon contains foo v1.1 then an
Code: Select all
 equo install foo
will install 1.1 not your version, just specify the version aswell ie
Code: Select all
equo install =foo-1.0
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: How to specify the repo to use

Postby sjieke » Fri Jul 25, 2008 8:21

V00d00,

I get your point, but your example is as the community repo and sabayon repo have different versions, but how would you do it if they have the same version?
An example, I recompiled foo v1.1 and added to my repo. Sabayon also contains foo v1.1
Someone (other than me) uses my repo and executes
Code: Select all
equo install =foo-1.1

Which one will he get? The one from my repo or the sabayon one?
There are 4 possible situations now:
1) The one from sabayon is installed but the user want's to have the one from my repo, how would he accomplish this?
2) The one from sabayon is installed and the user want's this. So no problem here.
3) The one from my repo is installed and the user want's to have the one from sabayon, how would he accomplish this?
4) The one from my repo is installed and the user want's this. No problem here.

I just want to be able to fully understand how the repos work before making one public (adding it to the wiki) although it will be a small one, due to the lack of available online storage :|
sjieke
Technological Hen
 
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: How to specify the repo to use

Postby Thev00d00 » Fri Jul 25, 2008 9:10

Code: Select all
equo install =foo1.1


Will give you the community version.

1.
Code: Select all
equo install =foo1.1

2. Good Good.
3.
Code: Select all
equo remove foo
then he would have to remove your repo and run
Code: Select all
equo install foo
again
, no elegant way do it at the moment
4. Good Good.
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: How to specify the repo to use

Postby sjieke » Fri Jul 25, 2008 9:32

Ok, thank you, everything is clear now 8)

I still have one small question on sitution number 3. Is it necessary to remove the package foo first? Because this will also remove all packages that depend on foo. Would removing the repo and executing
Code: Select all
equo install foo
be sufficient as I guess this will reinstall the package and since the repo it is installed from isn't available anymore it will use the sabayon one?
sjieke
Technological Hen
 
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: How to specify the repo to use

Postby Thev00d00 » Fri Jul 25, 2008 9:48

yeah that should be fine
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: How to specify the repo to use

Postby sjieke » Fri Jul 25, 2008 9:53

Thx again .

As all my questions regarding this toppic are answered, I'm setting it to solved.
sjieke
Technological Hen
 
Posts: 321
Joined: Thu Mar 01, 2007 10:46
Location: Maldegem, Belgium

Re: How to specify the repo to use [Solved]

Postby Thev00d00 » Fri Jul 25, 2008 10:10

w00t :D
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom


Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 2 guests