mirror of
https://github.com/openSUSE/osc.git
synced 2025-04-17 03:38:50 +02:00
- editmeta:
- add examples for <disable> tags to the package template - add examples for build targets to the project template
This commit is contained in:
parent
de66393b60
commit
2b7970148e
55
osc/core.py
55
osc/core.py
@ -29,22 +29,75 @@ exclude_stuff = [store, '.svn', 'CVS']
|
|||||||
|
|
||||||
new_project_templ = """\
|
new_project_templ = """\
|
||||||
<project name="%s">
|
<project name="%s">
|
||||||
|
|
||||||
<title>Short title of NewProject</title>
|
<title>Short title of NewProject</title>
|
||||||
|
|
||||||
<description>This project aims at providing some foo and bar.
|
<description>This project aims at providing some foo and bar.
|
||||||
|
|
||||||
It also does some weird stuff.
|
It also does some weird stuff.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<person role="maintainer" userid="%s" />
|
<person role="maintainer" userid="%s" />
|
||||||
|
|
||||||
|
<!-- remove this comment to enable one or more build targets
|
||||||
|
|
||||||
|
<repository name="SUSE_Linux_Factory">
|
||||||
|
<path project="SUSE:Factory" repository="standard" />
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
<arch>i586</arch>
|
||||||
|
</repository>
|
||||||
|
<repository name="SUSE_Linux_10.1">
|
||||||
|
<path project="SUSE:SL-10.1" repository="standard" />
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
<arch>i586</arch>
|
||||||
|
</repository>
|
||||||
|
<repository name="SUSE_Linux_10.0">
|
||||||
|
<path project="SUSE:SL-10.0" repository="standard" />
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
<arch>i586</arch>
|
||||||
|
</repository>
|
||||||
|
<repository name="SUSE_Linux_9.3">
|
||||||
|
<path project="SUSE:SL-9.3" repository="standard" />
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
<arch>i586</arch>
|
||||||
|
</repository>
|
||||||
|
<repository name="Fedora_Core_5">
|
||||||
|
<path project="Fedora:Core5" repository="standard" />
|
||||||
|
<arch>i586</arch>
|
||||||
|
</repository>
|
||||||
|
<repository name="SUSE_SLES-9">
|
||||||
|
<path project="SUSE:SLES-9" repository="standard" />
|
||||||
|
<arch>x86_64</arch>
|
||||||
|
<arch>i586</arch>
|
||||||
|
-->
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
new_package_templ = """\
|
new_package_templ = """\
|
||||||
<package name="%s">
|
<package name="%s">
|
||||||
|
|
||||||
<title>Title of New Package</title>
|
<title>Title of New Package</title>
|
||||||
|
|
||||||
<description>LONG DESCRIPTION
|
<description>LONG DESCRIPTION
|
||||||
GOES
|
GOES
|
||||||
HERE</description>
|
HERE
|
||||||
|
</description>
|
||||||
|
|
||||||
<person role="maintainer" userid="%s"/>
|
<person role="maintainer" userid="%s"/>
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
use on of the examples below to disable building of this package
|
||||||
|
on a certain architecture, in a certain repository,
|
||||||
|
or a combination thereof:
|
||||||
|
|
||||||
|
<disable arch="x86_64"/>
|
||||||
|
<disable repository="SUSE_SLES-9"/>
|
||||||
|
<disable repository="SUSE_SLES-9" arch="x86_64"/>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
</package>
|
</package>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user