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)
0
Konular (issue)
0
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
75f9f8f9
Kaydet (Commit)
75f9f8f9
authored
Ock 22, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug finded in tests. Fixed string literals and format function based problems
üst
d302958b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
inarytools.py
inary/actionsapi/inarytools.py
+1
-1
atomicoperations.py
inary/atomicoperations.py
+1
-1
specfile.py
inary/data/specfile.py
+1
-1
util.py
inary/util.py
+1
-1
No files found.
inary/actionsapi/inarytools.py
Dosyayı görüntüle @
75f9f8f9
...
...
@@ -190,7 +190,7 @@ def rename(sourceFile, destinationFile):
try
:
os
.
rename
(
join_path
(
get
.
installDIR
(),
sourceFile
),
join_path
(
get
.
installDIR
(),
baseDir
,
destinationFile
))
except
OSError
as
e
:
error
(
_
(
'ActionsAPI [rename]: {
}: {
}'
)
.
format
(
e
,
sourceFile
))
error
(
_
(
'ActionsAPI [rename]: {
0}: {1
}'
)
.
format
(
e
,
sourceFile
))
def
dosed
(
sources
,
findPattern
,
replacePattern
=
''
,
filePattern
=
''
,
deleteLine
=
False
,
level
=
-
1
):
'''replaces patterns in sources'''
...
...
inary/atomicoperations.py
Dosyayı görüntüle @
75f9f8f9
...
...
@@ -189,7 +189,7 @@ class Install(AtomicOperation):
int
(
release
)
inary
.
version
.
make_version
(
version
)
except
(
ValueError
,
inary
.
version
.
InvalidVersionError
):
raise
Error
(
_
(
"{
}-{
} is not a valid INARY version format"
)
.
format
(
version
,
release
))
raise
Error
(
_
(
"{
0}-{1
} is not a valid INARY version format"
)
.
format
(
version
,
release
))
def
check_relations
(
self
):
# check dependencies
...
...
inary/data/specfile.py
Dosyayı görüntüle @
75f9f8f9
...
...
@@ -450,7 +450,7 @@ class SpecFile(xmlfile.XmlFile, metaclass=autoxml.autoxml):
break
def
__str__
(
self
):
s
=
_
(
'Name: {
}, version: {}, release: {
}
\n
'
)
.
format
(
s
=
_
(
'Name: {
0}, version: {1}, release: {2
}
\n
'
)
.
format
(
self
.
source
.
name
,
self
.
history
[
0
]
.
version
,
self
.
history
[
0
]
.
release
)
s
+=
_
(
'Summary: {}
\n
'
)
.
format
(
str
(
self
.
source
.
summary
))
s
+=
_
(
'Description: {}
\n
'
)
.
format
(
str
(
self
.
source
.
description
))
...
...
inary/util.py
Dosyayı görüntüle @
75f9f8f9
...
...
@@ -578,7 +578,7 @@ def do_patch(sourceDir, patchFile, level=0, name=None, reverse=False):
# Which means stderr and stdout directed so they are None
raise
Error
(
_
(
"ERROR: patch ({}) failed"
)
.
format
((
patchFile
)))
else
:
raise
Error
(
_
(
"ERROR: patch ({
}) failed: {
}"
)
.
format
(
patchFile
,
out
))
raise
Error
(
_
(
"ERROR: patch ({
0}) failed: {1
}"
)
.
format
(
patchFile
,
out
))
os
.
chdir
(
cwd
)
...
...
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