o dt@s0dZddlZddlZddlmZ dddZdS)z4 Implementation for local filesystem upload method. N) dputhelperc Csg}tj|}|D]}tj|} tjtj|| } || q ddd|g} || dd<|rAtjd|tjd| t | t j krVtjdt dd Sd S) z4 Upload the files with /usr/bin/install in a batch. z/usr/bin/installz-m644zD: Uploading with cp to %s zD: %s zError while uploading. N) ospath expanduserbasenamejoinappendsysstdoutwriter check_callEXIT_STATUS_SUCCESSexit) fqdnloginincomingfiles_to_uploaddebugcompressprogressremote_file_paths file_path file_nameremote_file_pathcommandr%/usr/share/dput/dput/methods/local.pyuploads"       r!)r)__doc__rr helperrr!rrrr s