Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ba67a473
Commit
ba67a473
authored
Jan 07, 2005
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow relative URLs for included databases and packages.
parent
902c5f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
Lib/plat-mac/pimp.py
Lib/plat-mac/pimp.py
+7
-4
No files found.
Lib/plat-mac/pimp.py
View file @
ba67a473
...
...
@@ -402,18 +402,21 @@ class PimpDatabase:
self
.
_maintainer
=
plistdata
.
get
(
'Maintainer'
,
''
)
self
.
_description
=
plistdata
.
get
(
'Description'
,
''
).
strip
()
self
.
_url
=
url
self
.
_appendPackages
(
plistdata
[
'Packages'
])
self
.
_appendPackages
(
plistdata
[
'Packages'
]
,
url
)
others
=
plistdata
.
get
(
'Include'
,
[])
for
url
in
others
:
self
.
appendURL
(
url
,
included
=
1
)
for
o
in
others
:
o
=
urllib
.
basejoin
(
url
,
o
)
self
.
appendURL
(
o
,
included
=
1
)
def
_appendPackages
(
self
,
packages
):
def
_appendPackages
(
self
,
packages
,
url
):
"""Given a list of dictionaries containing package
descriptions create the PimpPackage objects and append them
to our internal storage."""
for
p
in
packages
:
p
=
dict
(
p
)
if
p
.
has_key
(
'Download-URL'
):
p
[
'Download-URL'
]
=
urllib
.
basejoin
(
url
,
p
[
'Download-URL'
])
flavor
=
p
.
get
(
'Flavor'
)
if
flavor
==
'source'
:
pkg
=
PimpPackage_source
(
self
,
p
)
...
...
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