Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
0a4b1952
Commit
0a4b1952
authored
Dec 17, 2018
by
Guilhem Saurel
Browse files
only_main_branches & longer pkgversion
parent
3b4b8ec2
Pipeline
#2004
passed with stages
in 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
0a4b1952
...
...
@@ -35,7 +35,7 @@ class Command(BaseCommand):
log
(
f
'
\n
Updating all projects
\n
'
)
for
project
in
Project
.
objects
.
all
():
log
(
f
'
{
project
}
'
)
project
.
update
()
project
.
update
(
only_main_branches
=
False
)
log
(
f
'
\n
Updating Robotpkg
\n
'
)
for
robotpkg
in
Robotpkg
.
objects
.
all
():
...
...
rainboard/migrations/0025_auto_20181217_1536.py
0 → 100644
View file @
0a4b1952
# Generated by Django 2.1.3 on 2018-12-17 14:36
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0024_project_cmake_name'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'robotpkg'
,
name
=
'pkgversion'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
50
),
),
]
rainboard/models.py
View file @
0a4b1952
...
...
@@ -298,10 +298,10 @@ class Project(Links, NamedModel, TimeStampedModel):
for
tag
in
self
.
git
().
tags
:
Tag
.
objects
.
get_or_create
(
name
=
str
(
tag
),
project
=
self
)
def
update
(
self
):
def
update
(
self
,
only_main_branches
=
True
):
if
self
.
main_namespace
is
None
:
return
self
.
update_branches
()
self
.
update_branches
(
main
=
only_main_branches
)
self
.
update_tags
()
tag
=
self
.
tag_set
.
filter
(
name__startswith
=
'v'
).
last
()
# TODO: implement SQL ordering for semver
if
tag
is
not
None
:
...
...
@@ -653,7 +653,7 @@ class Robotpkg(NamedModel):
category
=
models
.
CharField
(
max_length
=
50
)
pkgbase
=
models
.
CharField
(
max_length
=
50
,
default
=
''
)
pkgversion
=
models
.
CharField
(
max_length
=
2
0
,
default
=
''
)
pkgversion
=
models
.
CharField
(
max_length
=
5
0
,
default
=
''
)
master_sites
=
models
.
CharField
(
max_length
=
200
,
default
=
''
)
master_repository
=
models
.
CharField
(
max_length
=
200
,
default
=
''
)
maintainer
=
models
.
CharField
(
max_length
=
200
,
default
=
''
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment