[opensuse-buildservice] un-link ?

Is there a way to permanently turn packages which started life as linked packages into packages that aren't linked without deleting the package first? -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

Am Donnerstag, 27. Mai 2010, 03:11:28 schrieb Jon Nelson:
Is there a way to permanently turn packages which started life as linked packages into packages that aren't linked without deleting the package first?
In case you created the package as a branch you can just do osc up -u osc del _link osc ci Otherwise you need to copy the merged sources first out of the checked out package before running up -u and move it make afterwards. bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de

On 05/27/2010 06:38 AM, Adrian Schröter wrote:
Am Donnerstag, 27. Mai 2010, 03:11:28 schrieb Jon Nelson:
Is there a way to permanently turn packages which started life as
linked packages into packages that aren't linked without deleting the
package first?
In case you created the package as a branch you can just do
osc up -u
osc del _link
osc ci
Otherwise you need to copy the merged sources first out of the checked out
package before running up -u and move it make afterwards.
bye
adrian
Actually you can use osc linktobranch PROJECT PACKAGE to convert the link to a branch prior to deleting the link. Regards Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thu, May 27, 2010 at 7:36 AM, Dave Plater <davejplater@gmail.com> wrote:
On 05/27/2010 06:38 AM, Adrian Schröter wrote:
Am Donnerstag, 27. Mai 2010, 03:11:28 schrieb Jon Nelson:
Is there a way to permanently turn packages which started life as
linked packages into packages that aren't linked without deleting the
package first?
..
Actually you can use osc linktobranch PROJECT PACKAGE to convert the link to a branch prior to deleting the link.
I tried that but it still had link-oriented bits in .osc/_files. Specifically, it still contained tproject, tpackage, trev, tsrcmd5 and lsrcmd5 attributes in <directory>, and a <linkinfo/> element. Do these things matter or is it merely the presence or absence of a _link file which determines the link-y-ness of a package? -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Thu, May 27, 2010 at 8:22 AM, Jon Nelson <jnelson-suse@jamponi.net> wrote:
On Thu, May 27, 2010 at 7:36 AM, Dave Plater <davejplater@gmail.com> wrote:
On 05/27/2010 06:38 AM, Adrian Schröter wrote:
Am Donnerstag, 27. Mai 2010, 03:11:28 schrieb Jon Nelson:
Is there a way to permanently turn packages which started life as
linked packages into packages that aren't linked without deleting the
package first?
..
Actually you can use osc linktobranch PROJECT PACKAGE to convert the link to a branch prior to deleting the link.
I tried that but it still had link-oriented bits in .osc/_files. Specifically, it still contained tproject, tpackage, trev, tsrcmd5 and lsrcmd5 attributes in <directory>, and a <linkinfo/> element.
Do these things matter or is it merely the presence or absence of a _link file which determines the link-y-ness of a package?
Apparently they do matter. I just performed the following experiment: 1. created a temporary package 2. linked that package into another project 3. used 'osc linktobranch' to convert the project 4. used rdelete on the source project Now all operations on the linked/branched project fail. Incidentally, I found a way to do what I want: 1. [optional, but useful] synchronize the contents of the source and linked projects so that the linked project is identical to the source project 2. use copypac to overwrite the linked project with the source project. This retains the release number. 3. use rdelete to remove the original source project I wish there was an easier way to do this. An osc unlink command would be really nice. -- Jon -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 05/27/2010 04:19 PM, Jon Nelson wrote:
On Thu, May 27, 2010 at 8:22 AM, Jon Nelson <jnelson-suse@jamponi.net> wrote:
On Thu, May 27, 2010 at 7:36 AM, Dave Plater <davejplater@gmail.com> wrote:
On 05/27/2010 06:38 AM, Adrian Schröter wrote:
Am Donnerstag, 27. Mai 2010, 03:11:28 schrieb Jon Nelson:
Is there a way to permanently turn packages which started life as
linked packages into packages that aren't linked without deleting the
package first?
..
Actually you can use osc linktobranch PROJECT PACKAGE to convert the link to a branch prior to deleting the link.
I tried that but it still had link-oriented bits in .osc/_files. Specifically, it still contained tproject, tpackage, trev, tsrcmd5 and lsrcmd5 attributes in <directory>, and a <linkinfo/> element.
Do these things matter or is it merely the presence or absence of a _link file which determines the link-y-ness of a package?
Apparently they do matter. I just performed the following experiment:
1. created a temporary package 2. linked that package into another project 3. used 'osc linktobranch' to convert the project 4. used rdelete on the source project
Now all operations on the linked/branched project fail.
Incidentally, I found a way to do what I want:
1. [optional, but useful] synchronize the contents of the source and linked projects so that the linked project is identical to the source project 2. use copypac to overwrite the linked project with the source project. This retains the release number. 3. use rdelete to remove the original source project
I wish there was an easier way to do this. An osc unlink command would be really nice.
Sorry for the late reply. I use it without a problem if I want to create a new package based on the original link but linked to another package. I can't comment on debris left behind. Regards Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
Dave Plater
-
Jon Nelson