[opensuse-buildservice] how to get a copy of deleted packages?

How does one get a copy of a deleted package? For owned projects 'undelete' would work, for foreign project it does not. 'osc log' is apparently capable of working with a deleted package, while checkout and copypac just fail. Olaf

On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
How does one get a copy of a deleted package?
If you have a binary from the package you can use the DISTURL from it. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am Mon, 30 Apr 2018 12:17:17 +0200 schrieb Andreas Schwab <schwab@linux-m68k.org>:
On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
How does one get a copy of a deleted package? If you have a binary from the package you can use the DISTURL from it.
If that means 'osc co `rpm -q --qf %DISTURL $pkg`', that does not work for me. Olaf

On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
Am Mon, 30 Apr 2018 12:17:17 +0200 schrieb Andreas Schwab <schwab@linux-m68k.org>:
On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
How does one get a copy of a deleted package? If you have a binary from the package you can use the DISTURL from it.
If that means 'osc co `rpm -q --qf %DISTURL $pkg`', that does not work for me.
In which way does it not work for you? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Montag, 30. April 2018, 13:17:37 CEST wrote Andreas Schwab:
On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
Am Mon, 30 Apr 2018 12:17:17 +0200 schrieb Andreas Schwab <schwab@linux-m68k.org>:
On Apr 30 2018, Olaf Hering <olaf@aepfle.de> wrote:
How does one get a copy of a deleted package? If you have a binary from the package you can use the DISTURL from it.
If that means 'osc co `rpm -q --qf %DISTURL $pkg`', that does not work for me.
In which way does it not work for you?
we don't support checkout of deleted packages atm in osc. However, you could workaround that for now by using osc api /source/$project/$package?deleted=1 osc api /source/$project/$package/$file?deleted=1 > local_file -- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Am Mon, 30 Apr 2018 07:19:52 +0200 schrieb Olaf Hering <olaf@aepfle.de>:
How does one get a copy of a deleted package?
This happens to work: for i in `obs ls -D prj/pkg` ; do obs cat -D prj/pkg $i > $i ; done Olaf
participants (3)
-
Adrian Schröter
-
Andreas Schwab
-
Olaf Hering