summaryrefslogtreecommitdiffstats
path: root/mga-advisor.py
diff options
context:
space:
mode:
Diffstat (limited to 'mga-advisor.py')
-rw-r--r--mga-advisor.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/mga-advisor.py b/mga-advisor.py
index 4869407..ec66dad 100644
--- a/mga-advisor.py
+++ b/mga-advisor.py
@@ -3,8 +3,8 @@ import os
from pathlib import Path
import sys
import yaml
-import textwrap
import re
+from subprocess import run
from PySide6.QtWidgets import QApplication, QWidget, QDialog, QLineEdit, QPushButton, QVBoxLayout, QHBoxLayout, QComboBox, QTextEdit
from PySide6.QtCore import QFile, QDate, QDir
@@ -72,6 +72,7 @@ class Widget(QWidget):
self.ui.cancel_pb.clicked.connect(self.cancel)
self.ui.preview_pb.clicked.connect(self.preview)
self.ui.bug_le.editingFinished.connect(self.valid_number)
+ # self.populate()
def retrieve(self):
print("Action retrieve")
@@ -133,7 +134,7 @@ class Widget(QWidget):
else:
if not repo in srcs[release].keys():
srcs[release][repo] = []
- srcs[release][repo].append(name)
+ srcs[release][repo].append(self.sanitize_line(name))
if n != 0:
data['src'] = srcs
refs = []
@@ -142,7 +143,7 @@ class Widget(QWidget):
refs.append(self.ui.list_ref.item(n).text())
if n != 0:
data['references'] = refs
- return yaml.dump(data, default_flow_style=False)
+ return yaml.dump(data, default_flow_style=False, width=75)
def export(self):
if QDir().mkpath(QDir().homePath() + "/mageia-advisories/advisories"):