Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
test-import
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
tails
test-import
Commits
a495b510
Commit
a495b510
authored
7 years ago
by
intrigeri
Browse files
Options
Downloads
Patches
Plain Diff
Add a script allowing the source package to put specific profiles in complain mode.
parent
2cf0a05c
No related branches found
Branches containing commit
Tags
debian/1.14
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/scripts/put-profile-in-complain-mode
+22
-0
22 additions, 0 deletions
debian/scripts/put-profile-in-complain-mode
with
22 additions
and
0 deletions
debian/scripts/put-profile-in-complain-mode
0 → 100755
+
22
−
0
View file @
a495b510
#!/bin/sh
set
-e
set
-u
set
-x
[
$#
-eq
1
]
||
exit
1
PROFILE
=
"
$1
"
[
-n
"
$PROFILE
"
]
||
exit
2
[
-f
"
$PROFILE
"
]
||
exit
3
if
egrep
-q
'flags=\(.*\) {'
"
$PROFILE
"
;
then
# Deal with existing flags, but need to account for multiple
# profiles in one file and not all of them having the same
# flags.
grep
-q
'flags=(complain)'
"
$PROFILE
"
&&
continue
sed
-i
-e
's/flags=(\(.*\)) {$/flags=(complain,\1) {/'
-e
's/ {$/ flags=(complain) {/'
-e
's/) flags=(complain) {/) {/'
"
$PROFILE
"
else
# No existing flags
sed
-i
's/ {$/ flags=(complain) {/'
"
$PROFILE
"
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