From 991f09f9a7d4f734f0f46087f7f6eee5dbe00d67 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Sat, 1 Oct 2005 09:12:27 +0000 Subject: touches up on file.name check, part of glep31 svn path=/main/branches/2.0/; revision=2065 --- ChangeLog | 3 +++ bin/repoman | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15ccaaab2..afc6080db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ 2. /var/cache/edb/world is now /var/lib/portage/world. 3. /etc/portage/profile/virtuals is _USER_ configs only. + 01 Oct 2005; Brian Harring bin/repoman: + Touch ups to file.name check. + 01 Oct 2005; Brian Harring bin/ebuild, pym/portage.py: Fixed ebuild some-ebuild setup unpack so it functions like diff --git a/bin/repoman b/bin/repoman index 62e7852f3..4b813a3a1 100755 --- a/bin/repoman +++ b/bin/repoman @@ -835,10 +835,10 @@ for x in scanlist: stats["file.size"] += 1 fails["file.size"].append("("+ str(mystat.st_size/1024) + "K) "+x+"/files/"+y) - for c in y.strip(os.path.sep): + for c in os.path.basename(y.rstrip(os.path.sep)): if c not in allowed_filename_chars_set: stats["file.name"] += 1 - fails["file.name"].append("%s/%s: char '%s'" % (checkdir, y, c)) + fails["file.name"].append("%s/files/%s: char '%s'" % (checkdir, y, c)) break -- cgit v1.2.3-1-g7c22