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
a7fcb1e8
Commit
a7fcb1e8
authored
14 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
* be quiet by default
* add "|| true" in postinst-pycompile
parent
3982ccb3
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/postinst-pycompile
+1
-1
1 addition, 1 deletion
autoscripts/postinst-pycompile
pyclean
+2
-2
2 additions, 2 deletions
pyclean
pycompile
+4
-2
4 additions, 2 deletions
pycompile
with
7 additions
and
5 deletions
autoscripts/postinst-pycompile
+
1
−
1
View file @
a7fcb1e8
if which pycompile >/dev/null 2>&1; then
pycompile -p #PACKAGE# #ARGS#
pycompile -p #PACKAGE# #ARGS#
|| true
fi
This diff is collapsed.
Click to expand it.
pyclean
+
2
−
2
View file @
a7fcb1e8
...
...
@@ -100,9 +100,9 @@ def main():
usage
=
'
%prog [-p PACKAGE | DIR_OR_FILE]
'
parser
=
optparse
.
OptionParser
(
usage
,
version
=
'
%prog 0.9
'
)
parser
.
add_option
(
'
-v
'
,
'
--verbose
'
,
action
=
'
store_true
'
,
dest
=
'
verbose
'
,
default
=
False
,
help
=
'
turn verbose more one
'
)
help
=
'
turn verbose more one
'
)
parser
.
add_option
(
'
-q
'
,
'
--quiet
'
,
action
=
'
store_false
'
,
dest
=
'
verbose
'
,
default
=
Tru
e
,
help
=
'
be quiet
'
)
default
=
Fals
e
,
help
=
'
be quiet
'
)
parser
.
add_option
(
'
-p
'
,
'
--package
'
,
help
=
'
specify Debian package name to clean
'
)
...
...
This diff is collapsed.
Click to expand it.
pycompile
+
4
−
2
View file @
a7fcb1e8
...
...
@@ -193,9 +193,9 @@ def main():
parser
=
optparse
.
OptionParser
(
usage
,
version
=
'
%prog 0.9
'
,
option_class
=
Option
)
parser
.
add_option
(
'
-v
'
,
'
--verbose
'
,
action
=
'
store_true
'
,
dest
=
'
verbose
'
,
default
=
False
,
help
=
'
turn verbose more one
'
)
help
=
'
turn verbose more one
'
)
parser
.
add_option
(
'
-q
'
,
'
--quiet
'
,
action
=
'
store_false
'
,
dest
=
'
verbose
'
,
default
=
Tru
e
,
help
=
'
be quiet
'
)
default
=
Fals
e
,
help
=
'
be quiet
'
)
parser
.
add_option
(
'
-p
'
,
'
--package
'
,
help
=
'
specify Debian package name whose files should be bytecompiled
'
)
parser
.
add_option
(
'
-V
'
,
type
=
'
version_range
'
,
dest
=
'
vrange
'
,
...
...
@@ -215,6 +215,8 @@ multiple times to build up a list of things to exclude.')
if
options
.
verbose
:
log
.
setLevel
(
logging
.
INFO
)
else
:
log
.
setLevel
(
logging
.
WARN
)
if
environ
.
get
(
'
PYCOMPILE_DEBUG
'
)
==
'
1
'
:
log
.
setLevel
(
logging
.
DEBUG
)
log
.
debug
(
'
argv: %s
'
,
sys
.
argv
)
...
...
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