aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2007-03-09 10:43:55 +0800
committerlinimon <linimon@FreeBSD.org>2007-03-09 10:43:55 +0800
commit934b8baac3fe12463bde5c47e14ed226e3dab53f (patch)
tree2b2fff6214b9c07d233b53f6444fe0b5a9ecdedf /Tools
parentdb8e594c90c9fa294d83aa7bbee0ec28c6a28abf (diff)
downloadfreebsd-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-xTools/portbuild/scripts/dopackagestats7
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