diff options
author | Nicolas F | 2015-09-15 17:15:22 +0200 |
---|---|---|
committer | Nicolas F | 2015-09-15 17:15:22 +0200 |
commit | d58154e3b4c103bb6ef98dc6b28db7203fb35143 (patch) | |
tree | 020faa05ce953b0feb4c7044bce4ccac9a950b56 | |
parent | 07000e3538f4543164eb79f02f7ee47a9d4445ba (diff) | |
download | aur-d58154e3b4c103bb6ef98dc6b28db7203fb35143.tar.gz |
Add minor bugfix patch from upstream
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | 0001-ds-scanlators.patch | 29 | ||||
-rw-r--r-- | PKGBUILD | 13 |
3 files changed, 42 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = cum pkgdesc = Comic Updater, Mangafied pkgver = 0.1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Hamuko/cum arch = any license = Apache @@ -13,7 +13,9 @@ pkgbase = cum depends = python-natsort options = !emptydirs source = https://github.com/Hamuko/cum/archive/v0.1.tar.gz + source = 0001-ds-scanlators.patch md5sums = d782fb9c1e6334e39ecd798e2b97302f + md5sums = ca2e2b1f82a0b3c2261f03aa0454849f pkgname = cum diff --git a/0001-ds-scanlators.patch b/0001-ds-scanlators.patch new file mode 100644 index 000000000000..204904a2349d --- /dev/null +++ b/0001-ds-scanlators.patch @@ -0,0 +1,29 @@ +From 6793aed75f6d29f5b6fdcfd91d333b1a225f97dd Mon Sep 17 00:00:00 2001 +From: Hamuko <hamuko@burakku.com> +Date: Wed, 9 Sep 2015 08:00:03 +0300 +Subject: [PATCH] Handle DynastyScans chapters that have no scanlators. + +--- + cum/scrapers/dynastyscans.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/cum/scrapers/dynastyscans.py b/cum/scrapers/dynastyscans.py +index 1e5c7a1..8d95392 100644 +--- a/cum/scrapers/dynastyscans.py ++++ b/cum/scrapers/dynastyscans.py +@@ -74,7 +74,11 @@ class DynastyScansChapter(BaseChapter): + def get_groups(self): + r = requests.get(self.url) + soup = BeautifulSoup(r.text, config.html_parser) +- links = soup.find('span', class_='scanlators').find_all('a') ++ scanlators = soup.find('span', class_='scanlators') ++ if scanlators: ++ links = scanlators.find_all('a') ++ else: ++ links = [] + groups = [] + for link in links: + r = requests.get(urljoin(self.url, link.get('href'))) +-- +2.5.2 + @@ -1,16 +1,23 @@ # Maintainer: Nicolas F. <aur@fratti.ch> pkgname=cum pkgver=0.1 -pkgrel=1 +pkgrel=2 pkgdesc="Comic Updater, Mangafied" arch=('any') url="https://github.com/Hamuko/cum" license=('Apache') depends=('python-click' 'python' 'python-requests' 'python-sqlalchemy' 'python-beautifulsoup4' 'python-natsort') -source=("https://github.com/Hamuko/cum/archive/v${pkgver}.tar.gz") +source=("https://github.com/Hamuko/cum/archive/v${pkgver}.tar.gz" + "0001-ds-scanlators.patch") options=(!emptydirs) -md5sums=('d782fb9c1e6334e39ecd798e2b97302f') +md5sums=('d782fb9c1e6334e39ecd798e2b97302f' + 'ca2e2b1f82a0b3c2261f03aa0454849f') + +prepare() { + cd "$srcdir/$pkgname-$pkgver" + patch -p1 -i $srcdir/0001-ds-scanlators.patch +} package() { cd "$srcdir/$pkgname-$pkgver" |