Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
626e4cb0
Commit
626e4cb0
authored
Jul 11, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #572 from goozbach/devel
fixes #569 apt module problems on old versions of apt-python
parents
3f5c4772
f38b9d1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
library/apt
+6
-2
No files found.
library/apt
View file @
626e4cb0
...
...
@@ -28,6 +28,10 @@ import subprocess
import
syslog
import
traceback
#
added
to
stave
off
future
warnings
about
apt
api
import
warnings
;
warnings
.
filterwarnings
(
'ignore'
,
"apt API not stable yet"
,
FutureWarning
)
APT_PATH
=
"/usr/bin/apt-get"
APT
=
"DEBIAN_PRIORITY=critical %s"
%
APT_PATH
...
...
@@ -172,11 +176,11 @@ cache = apt.Cache()
if
default_release
:
apt_pkg
.
config
[
'APT::Default-Release'
]
=
default_release
#
reopen
cache
w
/
modified
config
cache
.
open
()
cache
.
open
(
progress
=
None
)
if
update_cache
==
'yes'
:
cache
.
update
()
cache
.
open
()
cache
.
open
(
progress
=
None
)
if
package
==
None
:
exit_json
(
changed
=
False
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment