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
8d507f79
Commit
8d507f79
authored
Feb 22, 2014
by
Lukáš Lalinský
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't require pycurl in apt_repository when it's not actually needed
parent
c7a30df5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
library/packaging/apt_repository
+4
-4
No files found.
library/packaging/apt_repository
View file @
8d507f79
...
...
@@ -28,9 +28,10 @@ short_description: Add and remove APT repositores
description:
- Add or remove an APT repositories in Ubuntu and Debian.
notes:
- This module works on Debian and Ubuntu and requires C(python-apt)
and C(python-pycurl) packages
.
- This module works on Debian and Ubuntu and requires C(python-apt).
- This module supports Debian Squeeze (version 6) as well as its successors.
- This module treats Debian and Ubuntu distributions separately. So PPA could be installed only on Ubuntu machines.
Adding PPA repositories requires C(python-pycurl).
options:
repo:
required: true
...
...
@@ -273,6 +274,8 @@ class UbuntuSourcesList(SourcesList):
def
_get_ppa_info
(
self
,
owner_name
,
ppa_name
):
# we can not use urllib2 here as it does not do cert verification
if
not
HAVE_PYCURL
:
module
.
fail_json
(
msg
=
'Could not import python modules: pycurl. Please install python-pycurl package.'
)
lp_api
=
self
.
LP_API
%
(
owner_name
,
ppa_name
)
return
self
.
_get_ppa_info_curl
(
lp_api
)
...
...
@@ -343,9 +346,6 @@ def main():
if
not
HAVE_PYTHON_APT
:
module
.
fail_json
(
msg
=
'Could not import python modules: apt_pkg. Please install python-apt package.'
)
if
not
HAVE_PYCURL
:
module
.
fail_json
(
msg
=
'Could not import python modules: pycurl. Please install python-pycurl package.'
)
repo
=
module
.
params
[
'repo'
]
state
=
module
.
params
[
'state'
]
update_cache
=
module
.
params
[
'update_cache'
]
...
...
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