Skip to contentSkip to conversation

Which Patchwork do we run?

server Paul Menzel 2 participants 2 messages Jan 24, 2010 – Jan 25, 2010

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 5 lines · Paul Menzel

Dear OE administrators,

before I want to contact the Patchwork guys about some issues I am seeing, what version do we run.

Yesterday we were running this:

- From e7b2910d415f9bbba3cd7b7ab1b720bce54a86c6 Mon Sep 17 00:00:00 2001
From: Jeremy Kerr <[email protected]>
Date: Fri, 27 Feb 2009 17:31:02 +1100
Subject: [PATCH] docs: remove completed todo items

And now we are running:

- From d5edf740c9c2c31fa60c757aa8d66e1dedbab74a Mon Sep 17 00:00:00 2001
From: Paul Menzel <[email protected]>
Date: Sun, 24 Jan 2010 21:06:57 +0100
Subject: [PATCH] pwclient get: fix for handling messages encoded in UTF-8

regards,

Koen

Quoted 49 lines

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,

Quoted 8 lines

Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLXVJ/MkyGM64RGpERAqbIAKCR8HLXrSEbA6lnyjF4DTGNsbaIXwCfW1QR x47sBzhJC6hqkSdVntpHmf0=
=26tU
-----END PGP SIGNATURE-----