Donate Share

SynCE

Tracker: Bugs

5 pcp-r script broken by change to pls? - ID: 1399671
Last Update: Comment added ( mark_ellis )

The pcp-r script found here:

http://synce.sourceforge.net/synce/contrib/pcp-r

seems to not work with the version of synce I have
installed from rpm:

synce-0.9.1-5.fc4

The script includes the text:

# new method, as easily breakable but not worse
than before.. we now
# rely on the filename starting at exactly
position 61 in the line pls
# returns..
i="`echo "$i"|cut -b61-`"

However, it appears (for me at least) the file names
start at 59 bytes.

The following patch seems to make it work for me:

--- pcp-r.orig 2006-01-08 23:57:48.000000000 +1300
+++ pcp-r 2006-01-08 23:58:31.000000000 +1300
@@ -58,9 +58,9 @@
function copy-item {
pls "$1"| while read i; do
# new method, as easily breakable but not worse
than before.. we now
- # rely on the filename starting at exactly
position 61 in the line pls
+ # rely on the filename starting at exactly
position 59 in the line pls
# returns..
- i="`echo "$i"|cut -b61-`"
+ i="`echo "$i"|cut -b59-`"
if [ `echo "$i"|grep -cE "/$"` = 1 ]; then
# directory
echo "making dir: $2/$i"


follower ( xfollower ) - 2006-01-08 11:32

5

Closed

None

David Eriksson

None

None

Public


Comments ( 2 )

Date: 2008-06-18 08:24
Sender: mark_ellisProject Admin


Added native recursive support to pcp, please give it a try.

Closing this bug, pcp-r seems to have disappeared anyway.


Date: 2006-01-09 15:36
Sender: twogoodSourceForge.net DonorProject AdminAccepting Donations

Logged In: YES
user_id=337437

The pls output changed after librapi2 0.9.1 so the latest
code is in CVS only. Please try the CVS version of librapi2
so I know you are using the latest version of pls.


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2008-06-18 08:24 mark_ellis
close_date - 2008-06-18 08:24 mark_ellis
assigned_to nobody 2006-11-10 21:39 twogood