Skip to content

Commit 80dbef7

Browse files
tools: fix forAdvisory
`Security.Advisories.Filesystem.forAdvisory` needs updating to match the updated (again) filenames in the repo re-org. Also update the filenames in the `reserved/` directory.
1 parent 2f89e1b commit 80dbef7

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed
File renamed without changes.
File renamed without changes.

code/hsec-tools/src/Security/Advisories/Filesystem.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ _forFilesByYear root go = do
163163
then do
164164
files <- liftIO $ listDirectory yearDir
165165
for files $ \file ->
166-
case parseHsecId ("HSEC-" <> year <> "-" <> dropExtension file) of
166+
case parseHsecId (dropExtension file) of
167167
Nothing -> pure mempty
168168
Just hsid -> go (yearDir </> file) hsid
169169
else pure mempty

0 commit comments

Comments
 (0)