Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-defaults
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
python-defaults
Commits
be92d2ce
Commit
be92d2ce
authored
13 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
add test case for absolute and relative symlink in dist-packages
parent
d7459e29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/t1/Makefile
+3
-0
3 additions, 0 deletions
tests/t1/Makefile
tests/t1/debian/rules
+4
-0
4 additions, 0 deletions
tests/t1/debian/rules
with
7 additions
and
0 deletions
tests/t1/Makefile
+
3
−
0
View file @
be92d2ce
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
tests/t1/debian/rules
+
4
−
0
View file @
be92d2ce
...
...
@@ -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\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment