Permalink
Browse files

Make existence of packages folder optional (since git ignores empty d…

…irs)
  • Loading branch information...
1 parent 738665f commit 3f743a18d4cee96a0a7531f6c3576f9483459372 @Gozala Gozala committed Oct 10, 2012
Showing with 5 additions and 5 deletions.
  1. +0 −3 .gitignore
  2. +5 −2 python-lib/cuddlefish/__init__.py
View
@@ -8,9 +8,6 @@ doc/index.html
doc/packages/
doc/status.md5
packages/*
-!packages/addon-kit/
-!packages/api-utils/
-!packages/test-harness/
# Python
*.pyc
@@ -425,8 +425,11 @@ def test_all_examples(env_root, defaults):
def test_all_packages(env_root, defaults):
packages_dir = os.path.join(env_root, "packages")
- packages = [dirname for dirname in os.listdir(packages_dir)
- if os.path.isdir(os.path.join(packages_dir, dirname))]
+ if os.path.isdir(packages_dir):
+ packages = [dirname for dirname in os.listdir(packages_dir)
+ if os.path.isdir(os.path.join(packages_dir, dirname))]
+ else:
+ packages = []
packages.append(env_root)
packages.sort()
print >>sys.stderr, "Testing all available packages: %s." % (", ".join(packages))

0 comments on commit 3f743a1

Please sign in to comment.