Skip to content
Snippets Groups Projects
Commit be92d2ce authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

add test case for absolute and relative symlink in dist-packages

parent d7459e29
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
all: run check
DPY=$(shell PYTHONPATH=../../ python -c 'import debpython.version as v; print(v.vrepr(v.DEFAULT))')
run: clean
dpkg-buildpackage -b -us -uc
......@@ -11,6 +12,8 @@ check:
test -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/__init__.py
test ! -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/spam.py
grep -q "Depends: .*python (<<" debian/python-foo/DEBIAN/control
[ `readlink debian/python-foo/usr/lib/python$(DPY)/dist-packages/foo/absolute_link_to_tmp` = /tmp ]
[ `readlink debian/python-foo/usr/lib/python$(DPY)/dist-packages/foo/link_to_parent_dir` = .. ]
clean:
./debian/rules clean
......
......@@ -5,6 +5,10 @@
override_dh_pysupport:
find debian/ -name jquery.js -exec \
ln -fs /usr/share/javascript/jquery/jquery.js '{}' \;
find debian/ -name foo -type d -exec \
ln -s /tmp/ '{}/absolute_link_to_tmp' \;
find debian/ -name foo -type d -exec \
ln -s .. '{}/link_to_parent_dir' \;
DH_VERBOSE=1 ../../dh_python2\
--depends 'SQLAlchemy >= 0.6.1'\
--recommends Mako\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment