{"action":"created","issue":{"url":"https://api.github.com/repos/deajan/osync/issues/40","labels_url":"https://api.github.com/repos/deajan/osync/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/deajan/osync/issues/40/comments","events_url":"https://api.github.com/repos/deajan/osync/issues/40/events","html_url":"https://github.com/deajan/osync/issues/40","id":115974940,"number":40,"title":"Busybox Bionic Support","user":{"login":"koroshiya","id":3969837,"avatar_url":"https://avatars.githubusercontent.com/u/3969837?v=3","gravatar_id":"","url":"https://api.github.com/users/koroshiya","html_url":"https://github.com/koroshiya","followers_url":"https://api.github.com/users/koroshiya/followers","following_url":"https://api.github.com/users/koroshiya/following{/other_user}","gists_url":"https://api.github.com/users/koroshiya/gists{/gist_id}","starred_url":"https://api.github.com/users/koroshiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koroshiya/subscriptions","organizations_url":"https://api.github.com/users/koroshiya/orgs","repos_url":"https://api.github.com/users/koroshiya/repos","events_url":"https://api.github.com/users/koroshiya/events{/privacy}","received_events_url":"https://api.github.com/users/koroshiya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deajan/osync/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/deajan/osync/milestones/2","html_url":"https://github.com/deajan/osync/milestones/v1.1%20-%20Next%20Bugfix%20version","labels_url":"https://api.github.com/repos/deajan/osync/milestones/2/labels","id":1179950,"number":2,"title":"v1.1 - Next Bugfix version","description":"Major code refactoring from (local master, local slave, remote slave) to (local, remote)(initiator, target) model.\r\nEvolve from spaghetti code to cleaner code, make maintenance more easy.\r\nAdd some debugging facilities (argument counter to avoid empty arguments, $FUNCNAME logs)","creator":{"login":"deajan","id":4681318,"avatar_url":"https://avatars.githubusercontent.com/u/4681318?v=3","gravatar_id":"","url":"https://api.github.com/users/deajan","html_url":"https://github.com/deajan","followers_url":"https://api.github.com/users/deajan/followers","following_url":"https://api.github.com/users/deajan/following{/other_user}","gists_url":"https://api.github.com/users/deajan/gists{/gist_id}","starred_url":"https://api.github.com/users/deajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deajan/subscriptions","organizations_url":"https://api.github.com/users/deajan/orgs","repos_url":"https://api.github.com/users/deajan/repos","events_url":"https://api.github.com/users/deajan/events{/privacy}","received_events_url":"https://api.github.com/users/deajan/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2015-06-24T20:35:35Z","updated_at":"2015-11-12T00:42:07Z","due_on":"2015-11-30T23:00:00Z","closed_at":null},"comments":20,"created_at":"2015-11-09T21:49:41Z","updated_at":"2015-12-15T13:10:00Z","closed_at":null,"body":"ie. Cyanogen OS (and other Android OS's) support.\r\n\r\nosync already syncs to Android, but when it comes to cleaning up on Busybox Bionic shells, osync starts to fail.\r\nI've encountered 2 issues preventing the cleanup from working on BBB: ctime and xargs.\r\n\r\nctime can be worked around by replacing the flag with mtime (which is probably preferable anyway?), and xargs can be replaced with a \"while read\" loop.\r\n\r\neg.\r\n$FIND_CMD \"$replica_deletion_path/\" -type f -ctime +$change_time -print0 | xargs -0 -I {} echo \"Will delete file {}\" > \"$RUN_DIR/osync.$FUNCNAME.$SCRIPT_PID\"\r\nLogger \"Command output:\\n$(cat $RUN_DIR/osync.$FUNCNAME.$SCRIPT_PID)\" \"NOTICE\"\r\n$FIND_CMD \"$replica_deletion_path/\" -type d -empty -ctime +$change_time -print0 | xargs -0 -I {} echo \"Will delete directory {}\" > \"$RUN_DIR/osync.$FUNCNAME.$SCRIPT_PID\"\r\nLogger \"Command output:\\n$(cat $RUN_DIR/osync.$FUNCNAME.$SCRIPT_PID)\" \"NOTICE\"\r\n\r\ncould be replaced with:\r\n$FIND_CMD \"$replica_deletion_path/\" -type f -mtime +$change_time -print0 | while read foo; do Logger \"Command output:\\nWill delete file $foo\" \"NOTICE\"; done\r\n$FIND_CMD \"$replica_deletion_path/\" -type d -empty -mtime +$change_time -print0 | while read foo; do Logger \"Command output:\\nWill delete directory $foo\" \"NOTICE\"; done\r\n\r\nAs shown in the example, this would also clean up the \"ugly xarg hacks\" used for logging command output."},"comment":{"url":"https://api.github.com/repos/deajan/osync/issues/comments/164758336","html_url":"https://github.com/deajan/osync/issues/40#issuecomment-164758336","issue_url":"https://api.github.com/repos/deajan/osync/issues/40","id":164758336,"user":{"login":"deajan","id":4681318,"avatar_url":"https://avatars.githubusercontent.com/u/4681318?v=3","gravatar_id":"","url":"https://api.github.com/users/deajan","html_url":"https://github.com/deajan","followers_url":"https://api.github.com/users/deajan/followers","following_url":"https://api.github.com/users/deajan/following{/other_user}","gists_url":"https://api.github.com/users/deajan/gists{/gist_id}","starred_url":"https://api.github.com/users/deajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deajan/subscriptions","organizations_url":"https://api.github.com/users/deajan/orgs","repos_url":"https://api.github.com/users/deajan/repos","events_url":"https://api.github.com/users/deajan/events{/privacy}","received_events_url":"https://api.github.com/users/deajan/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T13:10:00Z","updated_at":"2015-12-15T13:10:00Z","body":"Anything to merge yet ?"}}