From d19a2e77cbeeac0bf12b5962182e3d4534528937 Mon Sep 17 00:00:00 2001 From: Alessandro Thea Date: Thu, 1 Apr 2021 08:17:50 +0200 Subject: [PATCH] Removed duplicated entries from the srcinfo table --- src/ipbb/cmds/repo.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ipbb/cmds/repo.py b/src/ipbb/cmds/repo.py index 73c9326..89cbb49 100644 --- a/src/ipbb/cmds/repo.py +++ b/src/ipbb/cmds/repo.py @@ -583,10 +583,9 @@ def srcs_info(ictx): continue for _, lSubModDir, _ in (l.split() for l in lSubmods.split('\n')): - print(lSubModDir) with DirSentry(join(lSrcDir,lSubModDir)) as _: lHEADId, lHash = _git_info() - lSrcTable.add_row([u' └──'+basename(lSubModDir), lKind, lHEADId, lHash]) + lSrcTable.add_row(u' └──'+basename(lSubModDir), lKind, lHEADId, lHash) elif exists(join(lSrcDir, '.svn')): with DirSentry(lSrcDir) as _: @@ -597,8 +596,6 @@ def srcs_info(ictx): else: lSrcTable.add_row(lSrc, lKind, lHEADId, lHash) - - lSrcTable.add_row(lSrc, lKind, lHEADId, lHash) cprint(lSrcTable)