Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
I
inary
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
1
Konular (issue)
1
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
inary
Commits
3e3646b8
Kaydet (Commit)
3e3646b8
authored
Eyl 25, 2006
tarafından
Faik Uygur
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
* another rename
üst
c0f91f86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
commands.py
pisi/cli/commands.py
+1
-1
index.py
pisi/index.py
+2
-3
No files found.
pisi/cli/commands.py
Dosyayı görüntüle @
3e3646b8
...
...
@@ -893,7 +893,7 @@ everything in a single index file.
group
=
OptionGroup
(
self
.
parser
,
_
(
"index options"
))
group
.
add_option
(
"-a"
,
"--absolute-ur
i
s"
,
action
=
"store_true"
,
group
.
add_option
(
"-a"
,
"--absolute-ur
l
s"
,
action
=
"store_true"
,
default
=
False
,
help
=
_
(
"store absolute links for indexed files."
))
group
.
add_option
(
"-o"
,
"--output"
,
action
=
"store"
,
...
...
pisi/index.py
Dosyayı görüntüle @
3e3646b8
...
...
@@ -119,8 +119,7 @@ class Index(XmlFile):
md
=
metadata
.
MetaData
()
md
.
read
(
os
.
path
.
join
(
ctx
.
config
.
install_dir
(),
ctx
.
const
.
metadata_xml
))
md
.
package
.
packageSize
=
os
.
path
.
getsize
(
path
)
if
ctx
.
config
.
options
and
ctx
.
config
.
options
.
absolute_uris
:
# FIXME: the name "absolute_uris" does not seem to fit below :/
if
ctx
.
config
.
options
and
ctx
.
config
.
options
.
absolute_urls
:
md
.
package
.
packageURI
=
os
.
path
.
realpath
(
path
)
else
:
# create relative path by default
# TODO: in the future well do all of this with purl/pfile/&helpers
...
...
@@ -161,7 +160,7 @@ class Index(XmlFile):
#ctx.ui.error(str(Error(*errs)))
builder
.
fetch_component
()
sf
=
builder
.
spec
if
ctx
.
config
.
options
and
ctx
.
config
.
options
.
absolute_ur
i
s
:
if
ctx
.
config
.
options
and
ctx
.
config
.
options
.
absolute_ur
l
s
:
sf
.
source
.
sourceURI
=
os
.
path
.
realpath
(
path
)
else
:
# create relative path by default
sf
.
source
.
sourceURI
=
util
.
removepathprefix
(
repo_uri
,
path
)
...
...
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