[oe] [server] Which Patchwork do we run?
Paul Menzel
paulepanter at users.sourceforge.net
Sun Jan 24 18:16:35 UTC 2010
Dear OE administrators,
before I want to contact the Patchwork guys about some issues I am
seeing, what version do we run.
It does not seem to be up to date judging from the differences in
`pwclient`.
$ diff -u patchwork/apps/patchwork/bin/pwclient /usr/local/bin/pwclient
--- patchwork/apps/patchwork/bin/pwclient 2010-01-24 19:12:26.000000000 +0100
+++ /usr/local/bin/pwclient 2010-01-23 22:30:53.000000000 +0100
@@ -285,14 +285,8 @@
if not success:
sys.stderr.write("Patch not updated\n")
-def patch_id_from_hash(rpc, project, hash):
- try:
- patch = rpc.patch_get_by_project_hash(project, hash)
- except xmlrpclib.Fault:
- # the server may not have the newer patch_get_by_project_hash function,
- # so fall back to hash-only.
- patch = rpc.patch_get_by_hash(hash)
-
+def patch_id_from_hash(rpc, hash):
+ patch = rpc.patch_get_by_hash(hash)
if patch == {}:
return None
@@ -388,9 +382,9 @@
patch_id = None
if hash_str:
- patch_id = patch_id_from_hash(rpc, project_str, hash_str)
+ patch_id = patch_id_from_hash(rpc, hash_str)
if patch_id is None:
- sys.stderr.write("No patch has the hash provided\n")
+ sys.stderr.write("No patch has the hash provided")
sys.exit(1)
@@ -414,7 +408,7 @@
s = rpc.patch_get_mbox(patch_id)
if len(s) > 0:
- print unicode(s).encode("utf-8")
+ print s
elif action == 'get' or action == 'save':
try:
Thanks a lot,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100124/fb3e19d0/attachment-0002.sig>
More information about the Openembedded-devel
mailing list