Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Oskar Roesler
ros-aur-helpers
Commits
a6826079
Commit
a6826079
authored
Jan 09, 2021
by
Oskar Roesler
Committed by
Oskar Roesler
Jan 09, 2021
Browse files
Fix all as package arg
parent
477c2300
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
aurci/bootstrap.py
aurci/bootstrap.py
+1
-1
aurci/build.py
aurci/build.py
+2
-2
aurci/general.py
aurci/general.py
+4
-2
No files found.
aurci/bootstrap.py
View file @
a6826079
...
...
@@ -29,7 +29,7 @@ class Pull(Routines):
def
pull
(
self
):
if
self
.
package
==
"all"
:
t
=
ThreadPoolExecutor
(
max_workers
=
(
os
.
cpu_count
()))
for
folder
in
os
.
listdir
(
"./
packages
"
):
for
folder
in
os
.
listdir
(
self
.
packages
_path
):
t
.
submit
(
Pull
(
folder
,
self
.
verbosity
,
self
.
output
).
pull
)
else
:
repo
=
Repo
(
path
=
self
.
repos_path
)
...
...
aurci/build.py
View file @
a6826079
...
...
@@ -49,7 +49,7 @@ class Packages(Routines):
def
build
(
self
):
if
self
.
package
==
"all"
:
for
folder
in
os
.
listdir
(
"./
packages
"
):
for
folder
in
os
.
listdir
(
self
.
packages
_path
):
Packages
(
folder
,
self
.
verbosity
,
self
.
output
).
makepkg
()
else
:
self
.
makepkg
()
...
...
@@ -83,7 +83,7 @@ class Packages(Routines):
if
self
.
package
==
"all"
:
os
.
remove
(
self
.
FAILED_FILE
)
os
.
mknod
(
self
.
FAILED_FILE
)
for
folder
in
os
.
listdir
(
"./
packages
"
):
for
folder
in
os
.
listdir
(
self
.
packages
_path
):
with
open
(
self
.
SUCCESS_FILE
,
"r"
)
as
fobj
:
if
folder
in
fobj
.
read
():
pass
...
...
aurci/general.py
View file @
a6826079
...
...
@@ -22,10 +22,12 @@ class Routines:
self
.
cache_path
=
os
.
path
.
join
(
Routines
.
CACHE_ROOT
,
'ros-aur-helper'
)
self
.
check_and_create_path
(
self
.
config_path
)
self
.
check_and_create_path
(
self
.
cache_path
)
self
.
packages_path
=
os
.
path
.
join
(
self
.
cache_path
,
'packages'
)
self
.
check_and_create_path
(
self
.
packages_path
)
if
package
:
self
.
package
=
package
self
.
repo
s
_path
=
os
.
path
.
join
(
self
.
cache_path
,
"packages"
,
self
.
package
)
self
.
pkg
repo_path
=
os
.
path
.
join
(
self
.
packages_path
,
self
.
package
)
config
=
self
.
get_config
()
self
.
gh
=
Github
(
config
[
'CI'
][
'GH_OAUTH_TOKEN'
])
self
.
gh_organization_name
=
config
[
'CI'
][
'GH_ORGANIZATION'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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