From: Avery Pennarun Date: Sun, 13 Feb 2011 06:50:34 +0000 (-0800) Subject: cmd/ls: fix a typo causing 'bup ls foo/latest' to not work. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=11635a2e765354471d1234d19298a270710a76cf;p=packages%2Fb%2Fbup.git cmd/ls: fix a typo causing 'bup ls foo/latest' to not work. Signed-off-by: Avery Pennarun --- diff --git a/cmd/ls-cmd.py b/cmd/ls-cmd.py index 44359a3..3854a50 100755 --- a/cmd/ls-cmd.py +++ b/cmd/ls-cmd.py @@ -39,7 +39,7 @@ for d in extra: if opt.all or not sub.name.startswith('.'): print_node(sub.name, sub) else: - if opt.all or not sub.name.startswith('.'): + if opt.all or not n.name.startswith('.'): print_node(d, n) except vfs.NodeError, e: log('error: %s\n' % e) diff --git a/t/test.sh b/t/test.sh index 53df63b..2142471 100755 --- a/t/test.sh +++ b/t/test.sh @@ -150,6 +150,8 @@ WVPASS ls -lR \ WVPASS bup ls WVFAIL bup ls /does-not-exist WVPASS bup ls /lslr +WVPASS bup ls /lslr/latest +WVPASS bup ls /lslr/latest/ #WVPASS bup ls /lslr/1971-01-01 # all dates always exist WVFAIL diff -u tags1.tmp tags2.tmp