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
986636c5
Commit
986636c5
authored
14 years ago
by
Matthias Klose
Browse files
Options
Downloads
Patches
Plain Diff
package version python-defaults-2.4.4-5
parent
d20f6c5f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+7
-0
7 additions, 0 deletions
debian/changelog
debian/python.postinst.in
+16
-0
16 additions, 0 deletions
debian/python.postinst.in
debian/python.preinst.in
+8
-0
8 additions, 0 deletions
debian/python.preinst.in
with
31 additions
and
0 deletions
debian/changelog
+
7
−
0
View file @
986636c5
python-defaults (2.4.4-5) unstable; urgency=low
* Run the python2.5 rtinstall hooks, if python2.5 was already
installed as an unsupported version.
-- Matthias Klose <doko@debian.org> Wed, 16 May 2007 21:19:51 +0200
python-defaults (2.4.4-4) unstable; urgency=low
* New package python-all-dbg.
...
...
This diff is collapsed.
Click to expand it.
debian/python.postinst.in
+
16
−
0
View file @
986636c5
...
...
@@ -42,6 +42,22 @@ case "$1" in
done
[
-z
"
$errors
"
]
||
exit
5
fi
if
[
-f
/var/lib/python/python2.5_already_installed
]
\
&&
[
!
-f
/var/lib/python/python2.5_installed
]
then
if
[
"
$DEBIAN_FRONTEND
"
!=
noninteractive
]
;
then
echo
"Linking and byte-compiling packages for runtime python2.5..."
fi
oldversion
=
$(
cat
/var/lib/python/python2.5_already_installed
)
newversion
=
$(
dpkg
-s
python2.5-minimal |
awk
'/^Version:/ {print $2}'
)
for
hook
in
/usr/share/python/runtime.d/
*
.rtinstall
;
do
[
-x
$hook
]
||
continue
$hook
rtinstall python2.5
"
$oldversion
"
"
$newversion
"
done
fi
rm
-f
/var/lib/python/python2.5_already_installed
rmdir
--ignore-fail-on-non-empty
/var/lib/python 2>/dev/null
esac
#DEBHELPER#
This diff is collapsed.
Click to expand it.
debian/python.preinst.in
+
8
−
0
View file @
986636c5
...
...
@@ -29,6 +29,14 @@ case "$1" in
done
[
-z
"
$errors
"
]
||
exit
3
fi
# 2.4.4-5 is the first version, which adds python2.5 as supported
# version; need to run an rtinstall python2.5 in the postinst.
if
dpkg
--compare-versions
$2
lt 2.4.4-5
&&
[
-x
/usr/bin/python2.5
]
;
then
version
=
$(
dpkg
-s
python2.5-minimal |
awk
'/^Version:/ {print $2}'
)
mkdir
-p
/var/lib/python
echo
"
$version
"
>
/var/lib/python/python2.5_already_installed
fi
esac
#DEBHELPER#
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