On Mon, Jul 10, 2017 at 10:28:21AM +0800, 林博仁 wrote:
> The following `diff --unified` fixed the rsync error, however I don't
> speak Python.
>
> ```
> --- tar.py 2016-12-04 00:05:35.000000000 +0800
> +++ tar.py.patched 2017-07-10 10:23:37.318949713 +0800
> @@ -55,7 +55,7 @@
> if os.path.isdir(srcdir):
> debmake.yn.yn('remove "{}" directory in
> tar'.format(srcdir), 'rm -rf ' + srcdir, yes)
> # copy from parent to srcdir using hardlinks (with debian/* data)
> - command = 'rsync -av --link-dest=' + os.getcwd() + '/' +
> parent + ' ' + parent + '/. ' + srcdir
> + command = 'rsync -av --link-dest="' + os.getcwd() + '/' +
> parent + '" "' + parent + '/." ' + srcdir
> print('I: $ {}'.format(command), file=sys.stderr)
> if subprocess.call(command, shell=True) != 0:
> print('E: rsync -aCv failed.', file=sys.stderr)
> ```
This helps. I will work on this.
Osamu