Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 353818 Details for
Bug 477684
net-nntp/lazylibrarian-99999.ebuild - Automated book downloader for net-nntp/sabnzbd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
path.patch
path.patch (text/plain), 4.53 KB, created by
daktak
on 2013-07-22 04:21:56 UTC
(
hide
)
Description:
path.patch
Filename:
MIME Type:
Creator:
daktak
Created:
2013-07-22 04:21:56 UTC
Size:
4.53 KB
patch
obsolete
>diff -uNar lazylibrarian/__init__.py lazylibrarian/__init__.py >--- lazylibrarian/__init__.py 2013-07-22 14:02:41.528064953 +1000 >+++ lazylibrarian/__init__.py 2013-07-22 13:55:18.374617768 +1000 >@@ -258,9 +258,9 @@ > logger.lazylibrarian_log.initLogger(loglevel=LOGLEVEL) > > # Clearing cache >- if os.path.exists(".ProviderCache"): >- for f in os.listdir(".ProviderCache"): >- os.unlink("%s/%s" % (".ProviderCache", f)) >+ if os.path.exists("/var/lazylibrarian/cache/.ProviderCache"): >+ for f in os.listdir("/var/lazylibrarian/cache/.ProviderCache"): >+ os.unlink("%s/%s" % ("/var/lazylibrarian/cache/.ProviderCache", f)) > # Clearing throttling timeouts > t = SimpleCache.ThrottlingProcessor() > t.lastRequestTime.clear() >diff -uNar lazylibrarian/gr.py lazylibrarian/gr.py >--- lazylibrarian/gr.py 2013-07-22 14:02:41.529065453 +1000 >+++ lazylibrarian/gr.py 2013-07-22 13:54:15.741319427 +1000 >@@ -22,7 +22,7 @@ > > # Cache our request > request = urllib2.Request(URL) >- opener = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp = opener.open(request) > > try: >@@ -53,7 +53,7 @@ > > # Cache our request > request = urllib2.Request(URL) >- opener = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp = opener.open(request) > > try: >@@ -87,7 +87,7 @@ > try: > # Cache our request > request = urllib2.Request(URL) >- opener = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp = opener.open(request) > sourcexml = ElementTree.parse(resp) > except Exception, e: >@@ -141,7 +141,7 @@ > try: > # Cache our request > request = urllib2.Request(BOOK_URL) >- opener = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp = opener.open(request) > except Exception, e: > logger.error("Error finding results: ", e) >@@ -205,7 +205,7 @@ > try: > # Cache our request > request1 = urllib2.Request(URL) >- opener1 = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener1 = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp1 = opener1.open(request1) > except Exception, e: > logger.error("Error finding results: " + str(e)) >@@ -234,7 +234,7 @@ > try: > # Cache our request > request = urllib2.Request(set_url) >- opener = urllib2.build_opener(SimpleCache.CacheHandler(".AuthorCache"), SimpleCache.ThrottlingProcessor(5)) >+ opener = urllib2.build_opener(SimpleCache.CacheHandler("/var/lazylibrarian/cache/.AuthorCache"), SimpleCache.ThrottlingProcessor(5)) > resp = opener.open(request) > sourcexml = ElementTree.parse(resp) > except Exception, e: >diff -uNar lazylibrarian/searchnzb.py lazylibrarian/searchnzb.py >--- lazylibrarian/searchnzb.py 2013-07-22 14:02:41.529065453 +1000 >+++ lazylibrarian/searchnzb.py 2013-07-22 13:54:49.051965012 +1000 >@@ -23,9 +23,9 @@ > searchbooks = myDB.select('SELECT BookID, AuthorName, Bookname from books WHERE Status="Wanted"') > > # Clear cache >- if os.path.exists(".ProviderCache"): >- for f in os.listdir(".ProviderCache"): >- os.unlink("%s/%s" % (".ProviderCache", f)) >+ if os.path.exists("/var/lazylibrarian/cache/.ProviderCache"): >+ for f in os.listdir("/var/lazylibrarian/cache/.ProviderCache"): >+ os.unlink("%s/%s" % ("/var/lazylibrarian/cache/.ProviderCache", f)) > > # Clearing throttling timeouts > t = SimpleCache.ThrottlingProcessor()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 477684
:
353806
|
353808
|
353810
|
353812
|
353814
|
353816
|
353818
|
353820
|
353832
|
353970
|
376566