aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portell
diff options
context:
space:
mode:
authorMichael Landin <mich@FreeBSD.org>2005-05-19 14:03:29 +0000
committerMichael Landin <mich@FreeBSD.org>2005-05-19 14:03:29 +0000
commit833945f372e743d34daa694990ca250b1c54fff8 (patch)
tree870718c0ccbd83447b206ca7dc4532501ca83a9c /ports-mgmt/portell
parentb51b0a1422363c7c4357008d7327b7feda7de484 (diff)
downloadports-833945f372e743d34daa694990ca250b1c54fff8.tar.gz
ports-833945f372e743d34daa694990ca250b1c54fff8.zip
Notes
Diffstat (limited to 'ports-mgmt/portell')
-rw-r--r--ports-mgmt/portell/files/patch-portell.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/ports-mgmt/portell/files/patch-portell.py b/ports-mgmt/portell/files/patch-portell.py
new file mode 100644
index 000000000000..51177d7a848b
--- /dev/null
+++ b/ports-mgmt/portell/files/patch-portell.py
@@ -0,0 +1,26 @@
+
+$FreeBSD$
+
+--- portell.py.orig
++++ portell.py
+@@ -14,12 +14,16 @@
+ PORTELL_DB = "/var/db/portell.db"
+
+ PORTS_DIR = "/usr/ports/"
+-
++IGNORE_DIRS = { "distfiles":None, "Tools":None, "packages":None }
+
+ def write_pathname(d, dirname, names):
+- '/'.join(dirname.split('/')[:5]) # chop port path subdirs
+- d[os.path.basename(dirname)] = dirname
+-
++ dirs=dirname.split('/')
++ if len(dirs)==4:
++ if IGNORE_DIRS.has_key(dirs[3]):
++ del names[:]
++ elif len(dirs)==5:
++ d[dirs[4]] = dirname
++ del names[:]
+
+ def update_db(msg):
+ print msg