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
502813a1
Commit
502813a1
authored
13 years ago
by
Pierre Schmitz
Browse files
Options
Downloads
Patches
Plain Diff
commitpkg: Pass through the -f parameter to archrelease so unofficial repos can be used
parent
181646d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commitpkg.in
+9
-7
9 additions, 7 deletions
commitpkg.in
with
9 additions
and
7 deletions
commitpkg.in
+
9
−
7
View file @
502813a1
...
...
@@ -42,7 +42,7 @@ pkgbase=${pkgbase:-$pkgname}
case
"
$cmd
"
in
commitpkg
)
if
((
$#
==
0
))
;
then
die
'usage: commitpkg <reponame> [-s server] [-l limit] [-a arch] [commit message]'
die
'usage: commitpkg <reponame>
[-f]
[-s server] [-l limit] [-a arch] [commit message]'
fi
repo
=
"
$1
"
shift
...
...
@@ -51,7 +51,7 @@ case "$cmd" in
repo
=
"
${
cmd
%pkg
}
"
;;
*
)
die
'usage: commitpkg <reponame> [-s server] [-l limit] [-a arch] [commit message]'
die
'usage: commitpkg <reponame>
[-f]
[-s server] [-l limit] [-a arch] [commit message]'
;;
esac
...
...
@@ -74,11 +74,13 @@ for i in 'changelog' 'install'; do
done
rsyncopts
=(
-e
ssh
-p
--chmod
=
ug
=
rw,o
=
r
-c
-h
-L
--progress
--partial
-y
)
while
getopts
':l:a:s:'
flag
;
do
archreleaseopts
=()
while
getopts
':l:a:s:f'
flag
;
do
case
$flag
in
s
)
server
=
$2
;;
l
)
rsyncopts+
=(
"--bwlimit=
$2
"
)
;;
a
)
commit_arch
=
$2
;;
f
)
archreleaseopts+
=(
'-f'
)
;;
s
)
server
=
$OPTARG
;;
l
)
rsyncopts+
=(
"--bwlimit=
$OPTARG
"
)
;;
a
)
commit_arch
=
$OPTARG
;;
:
)
die
"Option requires an argument -- '
$OPTARG
'"
;;
\?
)
die
"Invalid option -- '
$OPTARG
'"
;;
esac
...
...
@@ -164,7 +166,7 @@ for _arch in ${arch[@]}; do
commit_arches+
=(
$_arch
)
fi
done
archrelease
"
${
commit_arches
[@]/#/
$repo
-
}
"
||
die
archrelease
"
${
archreleaseopts
[@]
}
"
"
${
commit_arches
[@]/#/
$repo
-
}
"
||
die
new_uploads
=()
...
...
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