The Mer Wiki now uses your Mer user account and password (create account on https://bugs.merproject.org/)


Osc Setup

From Mer Wiki
Revision as of 17:47, 6 September 2012 by Martink (Talk | contribs)

Jump to: navigation, search

This page describes how to setup osc

Contents

Preparation

You'll need a meego.com account and have the SDK setup.

Getting Access

Contact David or Niels to request access to https://api.pub.meego.com

irc: come to #meego and ask lbt (David) or X-Fade (Niels)

Email : david@dgreaves.com or niels@maemo.org

Using osc

Run osc the first time with

osc -A https://api.pub.meego.com ls

This will ask you to enter your meego.com user account details. Note that it can take up to 10 minutes before you can access the meego API URL after a password change or user account creation.

From now on, you can omit the API URL in the command.

osc ls

Using Multiple API URLs

If you're using osc with other API URLs, you can edit ~/.oscrc and add each of them and assign them aliases

[https://api.pub.meego.com/]
user = your-meego.com-username
pass = your-meego.com-password
aliases = pub-meego, pub.meego
 
[https://api.opensuse.org]
user = username
pass = password
aliases = opensuse

And to use the alias:

osc -A pub-meego ls
osc -A opensuse ls

Copying packages between OBS instances

It is possible (and quite handy :)) to copy packages between different OBS instances:

osc -A source_api copypac -t destination_api source_prj source_pkg destination_prj [destination_pkg]

Examples: With the above mentioned aliases:

osc -A opensuse copypac -t pub-meego Application:Geo monav home:MartinK:nemo

Just with the api URL:

osc -A https://api.opensuse.org copypac -t https://api.pub.meego.com Application:Geo monav home:MartinK:nemo

NOTE: You probably need a user account on both OBS instances.

Personal tools