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
linkpac -c and setlinkrev behave strange #72
Comments
I dislike links with a srcmd5 in the rev field and no vrev. For "normal" revisions leaving out the vrev is perfectly acceptable. |
for the reference: I'm unable to reproduce at the moment. No idea ;( |
I agree that the current behavior of linkpac -c and setlinkrev is quite The default setlinkrev command expands the "latest" rev of link using So the questions are: |
I have only one usecase to linkpac -c: freeze the sources to what I get with osc co -e. osc setlinkrev does the same for existant links and updates already present revs. |
On 2014-01-28 05:56:37 -0800, Stephan Kulow wrote:
Ok, that is what linkpac -c currently does.
osc setlinkrev A => set "rev" to the latest rev of B What should a subsequent setlinkrev call do? |
setlinkrev A should freeze the sources to the version you got at the moment you got when osc co A. So it needs to be a md5 if B is a link, it can be a plain rev if B is none. |
On 2014-01-28 06:52:27 -0800, Stephan Kulow wrote:
Is this the intended behavior? |
On Dienstag, 28. Januar 2014, 07:05:16 wrote Marcus Hüwe:
yes, but it becomes more complicate with another indirection A => B(rev1) => C(rev1) if B is for example a devel package it might get updated and submitted to C (openSUSE:Factory). So it is not enough when A points to rev 1 of B, because that one might take always the latest So, we need to use the md5sum of the merged sources, no matter how deep the link |
On 2014-01-28 07:13:11 -0800, Adrian Schröter wrote:
|
It should be fixed in commit 8b058b3. |
the current sources are defined by a srcmd5 not by a revision. Right now if you linkpac -c to a package that is a link itself, you keep the _link content but not the actual sources.
Which makes me believe that this is a bug is that setlinkrev has a -R option, which is supposed to enable the current default behaviour. There is no switch to enable srcmd5.
Beside that it would be good if both add the current vrev into the _link too - this makes sure the rebuild counters are correct. @mlschroe dislikes _links without vrev ;)
The text was updated successfully, but these errors were encountered: