diff options
author | linimon <linimon@FreeBSD.org> | 2007-03-09 10:43:55 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2007-03-09 10:43:55 +0800 |
commit | 934b8baac3fe12463bde5c47e14ed226e3dab53f (patch) | |
tree | 2b2fff6214b9c07d233b53f6444fe0b5a9ecdedf /Tools | |
parent | db8e594c90c9fa294d83aa7bbee0ec28c6a28abf (diff) | |
download | freebsd-ports-gnome-934b8baac3fe12463bde5c47e14ed226e3dab53f.tar.gz freebsd-ports-gnome-934b8baac3fe12463bde5c47e14ed226e3dab53f.tar.zst freebsd-ports-gnome-934b8baac3fe12463bde5c47e14ed226e3dab53f.zip |
Workaround for the fact that 4/ports is no longer populated on pointyhat.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackagestats | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats index 497d385b839e..0eb93483fcfe 100755 --- a/Tools/portbuild/scripts/dopackagestats +++ b/Tools/portbuild/scripts/dopackagestats @@ -61,7 +61,12 @@ write_row () { fi # work around the fact that 5-exp is really 6-exp-prime if [ ! -f $indexfile ]; then - indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* | head -1` + if [ -d $directory/ports ]; then + indexfile=$directory/ports/`cd $directory/ports&&ls INDEX* | head -1` + else + # work around the fact that 4 is EOL and thus has no ports/ directory + indexfile=$directory/logs/`cd $directory/logs&&ls INDEX* | head -1` + fi fi # column: date of CVS checkout |