Fixes #47390
authorkarltk <karltk@gentoo.org>
Fri, 10 Sep 2004 09:32:10 +0000 (09:32 -0000)
committerkarltk <karltk@gentoo.org>
Fri, 10 Sep 2004 09:32:10 +0000 (09:32 -0000)
svn path=/; revision=130

trunk/src/gensync/ChangeLog
trunk/src/gensync/gensync

index 266346b489c57eb5c3e194e5053714927488b808..2739cd2525676713a436371418be8a33e520077f 100644 (file)
@@ -2,7 +2,8 @@
        * Fixed portage import, fixes #45079.
        * Added all sources sync patch from Adam Ashley
         <adam_ashley@softhome.net>, fixes #45079.
-
+       * Fixed config dir scanning, suggested by burrelln@colorado.edu,
+       fixes #47390.
 
 2004-02-08 Karl Trygve Kalleberg <karltk@gentoo.org>
        * Initial import
index 177665f5d196dcff86b7f1bcb1262d03f9438217..bfc9b937e1f590cf9a38a90fdca75f4a3a732698 100755 (executable)
@@ -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):