[opensuse-buildservice] Renaming a project
Is there a simple way to rename a project? If not, can it somehow be done in the database directly and on the file system? Anas -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-02-20 12:42:40 -0500, Anas Nashif wrote:
Is there a simple way to rename a project? If not, can it somehow be done in the database directly and on the file system?
At the moment there's no apicall which renames a project. As a workaround you could do the following: - create a new project - and then do for i in $(osc ls <oldproject>); do osc copypac <oldproject> "$i" <newproject> done And afterwards if everything was successful you can run "osc deleteprj <oldproject>" (if you're really sure that you want to delete everything you should use the --force switch). Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
tried that, I lose all the revisions when I copy. I need to keep those. Anas Marcus Hüwe wrote:
On 2009-02-20 12:42:40 -0500, Anas Nashif wrote:
Is there a simple way to rename a project? If not, can it somehow be done in the database directly and on the file system?
At the moment there's no apicall which renames a project. As a workaround you could do the following: - create a new project - and then do for i in $(osc ls <oldproject>); do osc copypac <oldproject> "$i" <newproject> done And afterwards if everything was successful you can run "osc deleteprj <oldproject>" (if you're really sure that you want to delete everything you should use the --force switch).
Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag, 20. Februar 2009 20:28:29 schrieb Anas Nashif:
tried that, I lose all the revisions when I copy. I need to keep those.
you can rename it inside of the database and move the files on the backend at the same time (and restart scheduler). There is no "move" function yet (a little bit by intention, because if it is too easy to move around stuff, our mirrors might eat us some day :) bye adrian
Marcus Hüwe wrote:
On 2009-02-20 12:42:40 -0500, Anas Nashif wrote:
Is there a simple way to rename a project? If not, can it somehow be done in the database directly and on the file system?
At the moment there's no apicall which renames a project. As a workaround you could do the following: - create a new project - and then do for i in $(osc ls <oldproject>); do osc copypac <oldproject> "$i" <newproject> done And afterwards if everything was successful you can run "osc deleteprj <oldproject>" (if you're really sure that you want to delete everything you should use the --force switch).
Marcus
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Great, tried it, works so far. Had to clear the cache to get rid of some errors when opening the project page. Thanks, Anas Adrian Schröter wrote: > Am Freitag, 20. Februar 2009 20:28:29 schrieb Anas Nashif: >> tried that, I lose all the revisions when I copy. I need to keep those. > > you can rename it inside of the database and move the files on the backend at > the same time (and restart scheduler). > > There is no "move" function yet (a little bit by intention, because if it is > too easy to move around stuff, our mirrors might eat us some day :) > > bye > adrian > >> Marcus Hüwe wrote: >>> On 2009-02-20 12:42:40 -0500, Anas Nashif wrote: >>>> Is there a simple way to rename a project? If not, can it somehow be >>>> done in the database directly and on the file system? >>> At the moment there's no apicall which renames a project. As a workaround >>> you could do the following: >>> - create a new project >>> - and then do >>> for i in $(osc ls); do >>> osc copypac "$i" >>> done >>> And afterwards if everything was successful you can run >>> "osc deleteprj " (if you're really sure that you want to >>> delete everything you should use the --force switch). >>> >>> >>> Marcus > -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Feb 20, 2009 at 08:38:03PM +0100, Adrian Schröter wrote:
There is no "move" function yet (a little bit by intention, because if it is too easy to move around stuff, our mirrors might eat us some day :)
Is there a significant difference between a rename of a project, and a rebuild? I don't think so. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 23. Februar 2009 22:35:15 schrieb Peter Poeml:
On Fri, Feb 20, 2009 at 08:38:03PM +0100, Adrian Schröter wrote:
There is no "move" function yet (a little bit by intention, because if it is too easy to move around stuff, our mirrors might eat us some day :)
Is there a significant difference between a rename of a project, and a rebuild? I don't think so.
A rebuild would happen in any case, but people think twice before they do so .. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Anas Nashif
-
Marcus Hüwe
-
Peter Poeml