Mageia Bugzilla – Attachment 2816 Details for
Bug 7515
Request addition of python-pyp2rpm attached)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
change to metadata to make it a bit more robust
pyp2rpm-archive.patch (text/plain), 738 bytes, created by
Joseph Wang
on 2012-09-18 17:52:48 CEST
(
hide
)
Description:
change to metadata to make it a bit more robust
Filename:
MIME Type:
Creator:
Joseph Wang
Created:
2012-09-18 17:52:48 CEST
Size:
738 bytes
patch
obsolete
>--- a/pyp2rpmlib/archive.py 2012-05-31 20:34:44.000000000 +0800 >+++ b/pyp2rpmlib/archive.py 2012-09-18 23:39:15.420041141 +0800 >@@ -200,6 +200,8 @@ > > for line in setup_py.splitlines(): > if setup_argument in line or cont: >+ if line.find("#") != -1: >+ line = line.split("#")[0] > start_braces += line.count('[') > end_braces += line.count(']') > >@@ -207,8 +209,7 @@ > argument.append(line) > if start_braces == end_braces: > break >- >- if not argument: >+ if not argument or start_braces == 0: > return [] > else: > argument[0] = argument[0][argument[0].find('['):]
--- a/pyp2rpmlib/archive.py 2012-05-31 20:34:44.000000000 +0800 +++ b/pyp2rpmlib/archive.py 2012-09-18 23:39:15.420041141 +0800 @@ -200,6 +200,8 @@ for line in setup_py.splitlines(): if setup_argument in line or cont: + if line.find("#") != -1: + line = line.split("#")[0] start_braces += line.count('[') end_braces += line.count(']') @@ -207,8 +209,7 @@ argument.append(line) if start_braces == end_braces: break - - if not argument: + if not argument or start_braces == 0: return [] else: argument[0] = argument[0][argument[0].find('['):]
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 7515
:
2811
|
2812
|
2813
|
2814
| 2816