Move generator into old folder
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Родитель
c2f22eca40
Коммит
04bc66f5af
|
@ -1,3 +1,3 @@
|
|||
generator/out/
|
||||
old/generator/out/
|
||||
.DS_Store
|
||||
nc-sa-20YY-XXX.json
|
||||
|
|
|
@ -52,7 +52,7 @@ foreach($components as $component => $componentName) {
|
|||
echo "… Iterating $component …\n";
|
||||
$componentBugs = [];
|
||||
|
||||
$dir = new DirectoryIterator(__DIR__ . '/../' . $component);
|
||||
$dir = new DirectoryIterator(__DIR__ . '/../old/' . $component);
|
||||
foreach ($dir as $fileinfo) {
|
||||
if (!$fileinfo->isDot() && $fileinfo->getFilename() !== '.gitkeep') {
|
||||
echo "Processing $fileinfo \n";
|
||||
|
@ -192,7 +192,7 @@ foreach ($allBugs as $category => $list) {
|
|||
foreach ($advisories as $identifier => $title) {
|
||||
if (!isset($identifiersDone[$identifier])) {
|
||||
$identifiersDone[$identifier] = 'true';
|
||||
$advisoryContent = json_decode(file_get_contents(__DIR__ . '/../' . strtolower($category) . '/' . $identifier . '.json'), true);
|
||||
$advisoryContent = json_decode(file_get_contents(__DIR__ . '/../old/' . strtolower($category) . '/' . $identifier . '.json'), true);
|
||||
if (!isset($components[strtolower($category)])) {
|
||||
throw new Exception('Unknown category: ' . $category);
|
||||
}
|
Загрузка…
Ссылка в новой задаче