From dd097414d04a8420484e5be647ee4fd12d1254a1 Mon Sep 17 00:00:00 2001 From: karltk Date: Fri, 10 Sep 2004 09:32:10 +0000 Subject: [PATCH] Fixes #47390 svn path=/; revision=130 --- trunk/src/gensync/ChangeLog | 3 ++- trunk/src/gensync/gensync | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/trunk/src/gensync/ChangeLog b/trunk/src/gensync/ChangeLog index 266346b..2739cd2 100644 --- a/trunk/src/gensync/ChangeLog +++ b/trunk/src/gensync/ChangeLog @@ -2,7 +2,8 @@ * Fixed portage import, fixes #45079. * Added all sources sync patch from Adam Ashley , fixes #45079. - + * Fixed config dir scanning, suggested by burrelln@colorado.edu, + fixes #47390. 2004-02-08 Karl Trygve Kalleberg * Initial import diff --git a/trunk/src/gensync/gensync b/trunk/src/gensync/gensync index 177665f..bfc9b93 100755 --- a/trunk/src/gensync/gensync +++ b/trunk/src/gensync/gensync @@ -119,7 +119,8 @@ class SyncSourceManager: self._load_source_info() def _load_source_info(self): for x in os.listdir(Config.confdir): - if x.rfind(".syncsource") > 0: + if x.rfind(".syncsource") > 0 and \ + x.endswith(".syncsource"): ss = SyncSource(Config.confdir + "/" + x) self.sources.append(ss) def list_sources(self): -- 2.26.2