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
47f8e207
Commit
47f8e207
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
invoke `pycentral pkgremove foo` in preinst if upgrading from python-central based package
parent
5149c7f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autoscripts/preinst-pycentral-clean
+6
-0
6 additions, 0 deletions
autoscripts/preinst-pycentral-clean
debian/changelog
+8
-0
8 additions, 0 deletions
debian/changelog
dh_python2
+1
-0
1 addition, 0 deletions
dh_python2
with
15 additions
and
0 deletions
autoscripts/preinst-pycentral-clean
0 → 100644
+
6
−
0
View file @
47f8e207
# make sure python-central files are removed before new package is installed
if [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ] || [ -f /var/lib/pycentral/pkgremove ]
then
pycentral pkgremove #PACKAGE#
rm -f /var/lib/pycentral/#PACKAGE#.pkgremove
fi
This diff is collapsed.
Click to expand it.
debian/changelog
+
8
−
0
View file @
47f8e207
python-defaults (2.6.5-6) UNRELEASED; urgency=low
* dh_python2:
- invoke `pycentral pkgremove foo` in preinst if upgrading from
python-central based package
-- Piotr Ożarowski <piotr@debian.org> Sun, 27 Jun 2010 13:20:01 +0200
python-defaults (2.6.5-5) unstable; urgency=medium
* Use Python's compileall module instead of pycompile to byte-compile
...
...
This diff is collapsed.
Click to expand it.
dh_python2
+
1
−
0
View file @
47f8e207
...
...
@@ -564,6 +564,7 @@ def main():
pyclean_added
=
False
# invoke pyclean only once in maintainer script
if
stats
[
'
compile
'
]:
dh
.
autoscript
(
package
,
'
preinst
'
,
'
preinst-pycentral-clean
'
,
''
)
dh
.
autoscript
(
package
,
'
postinst
'
,
'
postinst-pycompile
'
,
''
)
dh
.
autoscript
(
package
,
'
prerm
'
,
'
prerm-pyclean
'
,
''
)
pyclean_added
=
True
...
...
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