diff options
Diffstat (limited to 'app-misc/gourmet/files/gourmet-0.15.0-empty_dictionary_insert.patch')
-rw-r--r-- | app-misc/gourmet/files/gourmet-0.15.0-empty_dictionary_insert.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-misc/gourmet/files/gourmet-0.15.0-empty_dictionary_insert.patch b/app-misc/gourmet/files/gourmet-0.15.0-empty_dictionary_insert.patch new file mode 100644 index 000000000000..4bc205787437 --- /dev/null +++ b/app-misc/gourmet/files/gourmet-0.15.0-empty_dictionary_insert.patch @@ -0,0 +1,13 @@ +--- a/src/lib/recipeManager.py 2009-10-14 11:54:10.000000000 -0300 ++++ b/src/lib/recipeManager.py 2009-10-14 11:54:33.000000000 -0300 + +@@ -34,7 +34,8 @@ + pickle_val=False) + if len(self.orgdic.items())==0: + dic = shopping.setup_default_orgdic() +- self.orgdic.initialize(dic) ++ if dic: ++ self.orgdic.initialize(dic) + + def init_ingorder_dic (self): + self.ingorder_dic = dbDic('ingkey','position',self.db.shopcats_table,db=self.db, |