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
9b6df6d9
Commit
9b6df6d9
authored
Aug 14, 2014
by
rghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #8626 by reverting
0d8b81cd
parent
bea08453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
library/packaging/urpmi
+0
-11
No files found.
library/packaging/urpmi
View file @
9b6df6d9
...
@@ -76,19 +76,11 @@ import json
...
@@ -76,19 +76,11 @@ import json
import
shlex
import
shlex
import
os
import
os
import
sys
import
sys
try
:
import
rpm
USE_PYTHON
=
True
except
ImportError
:
USE_PYTHON
=
False
URPMI_PATH
=
'/usr/sbin/urpmi'
URPMI_PATH
=
'/usr/sbin/urpmi'
URPME_PATH
=
'/usr/sbin/urpme'
URPME_PATH
=
'/usr/sbin/urpme'
def
query_package
(
module
,
name
):
def
query_package
(
module
,
name
):
if
USE_PYTHON
:
return
rpm
.
TransactionSet
().
dbMatch
(
rpm
.
RPMTAG_NAME
,
name
).
count
()
!= 0
#
rpm
-
q
returns
0
if
the
package
is
installed
,
#
rpm
-
q
returns
0
if
the
package
is
installed
,
#
1
if
it
is
not
installed
#
1
if
it
is
not
installed
cmd
=
"rpm -q %s"
%
(
name
)
cmd
=
"rpm -q %s"
%
(
name
)
...
@@ -99,9 +91,6 @@ def query_package(module, name):
...
@@ -99,9 +91,6 @@ def query_package(module, name):
return
False
return
False
def
query_package_provides
(
module
,
name
):
def
query_package_provides
(
module
,
name
):
if
USE_PYTHON
:
return
rpm
.
TransactionSet
().
dbMatch
(
rpm
.
RPMTAG_PROVIDES
,
name
).
count
()
!= 0
#
rpm
-
q
returns
0
if
the
package
is
installed
,
#
rpm
-
q
returns
0
if
the
package
is
installed
,
#
1
if
it
is
not
installed
#
1
if
it
is
not
installed
cmd
=
"rpm -q --provides %s"
%
(
name
)
cmd
=
"rpm -q --provides %s"
%
(
name
)
...
...
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