Merge lp:~gesha/linaro-license-protection/hide-howtos into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Georgy Redkozubov
Status: Merged
Merged at revision: 208
Proposed branch: lp:~gesha/linaro-license-protection/hide-howtos
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 13 lines (+2/-1)
1 file modified
license_protected_downloads/views.py (+2/-1)
To merge this branch: bzr merge lp:~gesha/linaro-license-protection/hide-howtos
Reviewer Review Type Date Requested Status
Milo Casagrande (community) Approve
Review via email: mp+170285@code.launchpad.net

Description of the change

This branch hides HOWTO_*.txt and *.textile files from being shown in the list of files.
Bug https://bugs.launchpad.net/linaro-license-protection/+bug/1192495

To post a comment you must log in.
Revision history for this message
Milo Casagrande (milo) wrote :

Looks good to me.
+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'license_protected_downloads/views.py'
2--- license_protected_downloads/views.py 2013-06-17 09:29:35 +0000
3+++ license_protected_downloads/views.py 2013-06-19 09:54:29 +0000
4@@ -44,7 +44,8 @@
5
6
7 def _hidden_file(file_name):
8- hidden_files = ["BUILD-INFO.txt", "EULA.txt", r"^\.", "HEADER.html"]
9+ hidden_files = ["BUILD-INFO.txt", "EULA.txt", r"^\.", "HEADER.html",
10+ "HOWTO_", "textile"]
11 for pattern in hidden_files:
12 if re.search(pattern, file_name):
13 return True

Subscribers

People subscribed via source and target branches