Fix NoneType object error
faik@moon ~ $ sudo pisi hs -t 2026 Bu paketler kurulacak: aria2-1.0.1-20-9 Devam etmek istiyor musunuz? (evet/hayır)e İndiriliyor 1 / 1 Paket aria2, pardus-2008-test deposunda bulundu aria2-1.0.1-20-9.pisi [önbellekte] Kurulum sırası: aria2 aria2 paketi, versiyon 1.0.1, sürüm 20, inşa 9 kuruluyor aria2 paketi kaldırılmak üzere yapılandırılıyor aria2 paketinin dosyaları arşivden çıkartılıyor aria2 paketi yapılandırılıyor aria2 paketi yapılandırıldı Sistem Hatası: Program Sonlandırıldı. 'NoneType' object has no attribute 'add'
This commit is contained in:
@@ -27,7 +27,7 @@ class HistoryDB(lazydb.LazyDB):
|
||||
|
||||
def init(self):
|
||||
self.__logs = self.__generate_history()
|
||||
self.history = None
|
||||
self.history = pisi.history.History()
|
||||
|
||||
def __generate_history(self):
|
||||
logs = filter(lambda x:x.endswith(".xml"), os.listdir(ctx.config.history_dir()))
|
||||
@@ -36,7 +36,6 @@ class HistoryDB(lazydb.LazyDB):
|
||||
return logs
|
||||
|
||||
def create_history(self, operation):
|
||||
self.history = pisi.history.History()
|
||||
self.history.create(operation)
|
||||
|
||||
def add_and_update(self, pkgBefore=None, pkgAfter=None, operation=None, otype=None):
|
||||
|
||||
Reference in New Issue
Block a user