Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
ecde2039
Commit
ecde2039
authored
11 years ago
by
Jim Pryor
Committed by
Natanael Copa
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
abump: tweak upgrade/cvelist
parent
512d5fd5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
abump.in
+5
-8
5 additions, 8 deletions
abump.in
with
5 additions
and
8 deletions
abump.in
+
5
−
8
View file @
ecde2039
...
@@ -18,7 +18,8 @@ fi
...
@@ -18,7 +18,8 @@ fi
# version bump packages
# version bump packages
do_bump
()
{
do_bump
()
{
local
p
rc
=
0 pkgname pkgver section upgrade cve message
local
p
rc
=
0 pkgname pkgver section message
local
upgrade
=
"
${
cvelist
:+security
}
upgrade"
for
p
;
do
for
p
;
do
pkgname
=
${
p
%-[0-9]*
}
pkgname
=
${
p
%-[0-9]*
}
pkgver
=
${
p
#
${
pkgname
}
-
}
pkgver
=
${
p
#
${
pkgname
}
-
}
...
@@ -27,14 +28,10 @@ do_bump() {
...
@@ -27,14 +28,10 @@ do_bump() {
set
-e
set
-e
cd
$HOME
/aports/
*
/
$pkgname
cd
$HOME
/aports/
*
/
$pkgname
section
=
${
PWD
%/*
}
upgrade
=
"upgrade"
cve
=
section
=
${
PWD
%/*
}
section
=
${
section
##*/
}
section
=
${
section
##*/
}
if
[
-n
"
$cvelist
"
]
;
then
upgrade
=
"security upgrade"
cve
=
" (
$cvelist
)"
fi
message
=
"
$section
/
$pkgname
:
$upgrade
to
${
pkgver
}${
cve
}
"
message
=
"
$section
/
$pkgname
:
$upgrade
to
${
pkgver
}${
cve
list
}
"
if
[
-n
"
$fixes
"
]
;
then
if
[
-n
"
$fixes
"
]
;
then
message
=
"
$message
message
=
"
$message
...
@@ -86,7 +83,7 @@ fi
...
@@ -86,7 +83,7 @@ fi
eval set
--
"
$args
"
eval set
--
"
$args
"
while
true
;
do
while
true
;
do
case
$1
in
case
$1
in
-s
|
--security
)
cvelist
=
"
$2
"
;
shift
;;
-s
|
--security
)
cvelist
=
"
(
$2
)
"
;
shift
;;
-f
|
--fixes
)
fixes
=
"
$2
"
;
shift
;;
-f
|
--fixes
)
fixes
=
"
$2
"
;
shift
;;
-R
|
--recursive
)
recursive
=
"-R"
;;
-R
|
--recursive
)
recursive
=
"-R"
;;
-k
|
--keep
)
keep
=
"-k"
;;
-k
|
--keep
)
keep
=
"-k"
;;
...
...
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