Merge ~litios/ubuntu-cve-tracker:update-usn-fixme-regex into ubuntu-cve-tracker:master

Proposed by David Fernandez Gonzalez
Status: Rejected
Rejected by: David Fernandez Gonzalez
Proposed branch: ~litios/ubuntu-cve-tracker:update-usn-fixme-regex
Merge into: ubuntu-cve-tracker:master
Diff against target: 13 lines (+1/-1)
1 file modified
scripts/sis-generate-usn (+1/-1)
Reviewer Review Type Date Requested Status
Alex Murray Pending
Review via email: mp+438466@code.launchpad.net

Description of the change

The USNs complain about placeholders in bash comments.
This updates the regex to ignore them.

To post a comment you must log in.
Revision history for this message
Rodrigo Figueiredo Zaiden (rodrigo-zaiden) wrote :

hey, this is being discussed in
https://code.launchpad.net/~rodrigo-zaiden/ubuntu-cve-tracker/+git/ubuntu-cve-tracker/+merge/438390

I'm glad to see that I've made a very similar proposal hehe.

On that merge request you can notice that Alex explains that the idea is to have a warning on the comments as well, so, it is acting like it is supposed to be. But, it is all open for discussion.

hope it helps.
thanks!

Revision history for this message
David Fernandez Gonzalez (litios) wrote :

Oops, thanks Rodrigo!
I totally missed that.

Closing this :)

Unmerged commits

e710607... by David Fernandez Gonzalez

sis-generate-usn: don't complain about placeholders in comments

Succeeded
[SUCCEEDED] tests:0 (build)
11 of 1 result

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/scripts/sis-generate-usn b/scripts/sis-generate-usn
2index 8fa14c2..29c0e17 100755
3--- a/scripts/sis-generate-usn
4+++ b/scripts/sis-generate-usn
5@@ -570,7 +570,7 @@ print('#!/bin/bash')
6 print('set -e')
7 print()
8 print('# check for unfixed placeholders - DO NOT REMOVE THE FOLLOWING LINE')
9-print('grep -Hn "X""X""X" "${0}" && echo "${0} still contains placeholders / FIXMEs - ensure you fix these all then rerun the script" && exit 1')
10+print('grep -EHn "^[^#]*XX""X" "${0}" && echo "${0} still contains placeholders / FIXMEs - ensure you fix these all then rerun the script" && exit 1')
11 print()
12 print('export PATH=$PATH:%s' % (config['usn_tool']))
13 print('export USN=%s'%(usn))

Subscribers

People subscribed via source and target branches