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
=== modified file 'license_protected_downloads/views.py'
--- license_protected_downloads/views.py 2013-06-17 09:29:35 +0000
+++ license_protected_downloads/views.py 2013-06-19 09:54:29 +0000
@@ -44,7 +44,8 @@
4444
4545
46def _hidden_file(file_name):46def _hidden_file(file_name):
47 hidden_files = ["BUILD-INFO.txt", "EULA.txt", r"^\.", "HEADER.html"]47 hidden_files = ["BUILD-INFO.txt", "EULA.txt", r"^\.", "HEADER.html",
48 "HOWTO_", "textile"]
48 for pattern in hidden_files:49 for pattern in hidden_files:
49 if re.search(pattern, file_name):50 if re.search(pattern, file_name):
50 return True51 return True

Subscribers

People subscribed via source and target branches