/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/walker/copy_in.py

  • Committer: Tim Marston
  • Date: 2016-12-13 21:40:34 UTC
  • Revision ID: tim@ed.am-20161213214034-nd5t7ztnlrjd627i
fix add command and generic filename expansion/resolution to expend to
homedir-relative filename and absolute filename based on original filename, as
specified, rather than a fully, symlink-resolved filename.  So, e.g., if ~/bob
was a symlink to ~/fred, then ~/bob/a would resolve to the relative filename
bob/a, becuase it is inside the homedir (it would resolve to fred/a otherwise)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
20
 
21
21
 
22
 
from .copy_base import CopyBaseWalker
 
22
from copy_base import CopyBaseWalker
23
23
import stdhome.the as the
24
24
from stdhome.file_matcher import FileMatcher
25
25
 
50
50
                # verbose reporting
51
51
                if the.verbose >= 2:
52
52
                        if op == '*': op = '>'
53
 
                        print("  %s%s%s %s" % ( src, op, dst, rel_file ))
 
53
                        print "  %s%s%s %s" % ( src, op, dst, rel_file )