Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Traylen
reposync
Commits
dddb1681
Commit
dddb1681
authored
Dec 18, 2018
by
Alex Iribarren
Browse files
Merge branch 'dev' into 'master'
Actually skip disabled jobs See merge request
linuxsupport/cronjobs/reposync!29
parents
7b05b4b3
0578987a
Changes
1
Hide whitespace changes
Inline
Side-by-side
generateJobs.py
View file @
dddb1681
...
...
@@ -13,7 +13,7 @@ import base64
try
:
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"c:t:y:"
,
[
"config="
,
"template="
,
"yumdir="
])
except
getopt
.
GetoptError
:
print
(
'
test
.py -c <configfile> -t <templatefile> -y <yumdir>'
)
print
(
'
generateJobs
.py -c <configfile> -t <templatefile> -y <yumdir>'
)
sys
.
exit
(
1
)
config_name
=
None
...
...
@@ -67,7 +67,7 @@ for repofile in os.listdir(yumdir_name):
continue
for
rid
in
repoconfig
.
sections
():
if
repoconfig
[
rid
].
get
(
'enabled'
,
1
)
==
0
:
if
not
repoconfig
[
rid
].
get
boolean
(
'enabled'
,
True
)
:
continue
try
:
SCHEDULE
=
config
[
repofile
][
'schedule'
]
...
...
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