Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devtools
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
archlinux
devtools
Commits
a23d93ce
Commit
a23d93ce
authored
12 years ago
by
Pierre Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
commitpkg: check if there are any packages to process before doing so
parent
246b8ead
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commitpkg.in
+11
-9
11 additions, 9 deletions
commitpkg.in
with
11 additions
and
9 deletions
commitpkg.in
+
11
−
9
View file @
a23d93ce
...
...
@@ -183,19 +183,21 @@ for _arch in ${arch[@]}; do
commit_arches+
=(
$_arch
)
fi
done
archrelease
"
${
archreleaseopts
[@]
}
"
"
${
commit_arches
[@]/#/
$repo
-
}
"
||
die
new_uploads
=()
if
[[
${#
commit_arches
[*]
}
-gt
0
]]
;
then
archrelease
"
${
archreleaseopts
[@]
}
"
"
${
commit_arches
[@]/#/
$repo
-
}
"
||
die
fi
# convert to absolute paths so rsync can work with colons (epoch)
while
read
-r
-d
''
upload
;
do
new_uploads+
=(
"
$upload
"
)
done
< <
(
realpath
-z
"
${
uploads
[@]
}
"
)
if
[[
${#
uploads
[*]
}
-gt
0
]]
;
then
new_uploads
=()
uploads
=(
"
${
new_uploads
[@]
}
"
)
unset
new_uploads
# convert to absolute paths so rsync can work with colons (epoch)
while
read
-r
-d
''
upload
;
do
new_uploads+
=(
"
$upload
"
)
done
< <
(
realpath
-z
"
${
uploads
[@]
}
"
)
if
[[
${#
uploads
[*]
}
-gt
0
]]
;
then
uploads
=(
"
${
new_uploads
[@]
}
"
)
unset
new_uploads
msg
'Uploading all package and signature files'
rsync
"
${
rsyncopts
[@]
}
"
"
${
uploads
[@]
}
"
"
$server
:staging/
$repo
/"
||
die
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment