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
57368e04
Kaydet (Commit)
57368e04
authored
Tem 02, 2019
tarafından
Ali Rıza Keskin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changed repository add method
üst
c55c1f83
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
9 deletions
+30
-9
.gitignore
.gitignore
+0
-1
PKG-INFO
PKG-INFO
+3
-3
addrepo.py
inary/cli/addrepo.py
+7
-5
__init__.py
inary/misc/__init__.py
+2
-0
epoch2string.py
inary/misc/epoch2string.py
+17
-0
setup.py
setup.py
+1
-0
No files found.
.gitignore
Dosyayı görüntüle @
57368e04
...
...
@@ -106,6 +106,5 @@ ENV/
CMakeCache.txt
CMakeFiles/
*.cmake
Makefile
config/inary.conf
*.py___jb_tmp___
PKG-INFO
Dosyayı görüntüle @
57368e04
...
...
@@ -2,9 +2,9 @@ Metadata-Version: 1.0
Name: inary
Version: 1.0
Summary: Inary (Special Package Manager)
Home-page: http
://www.aquilanipalensis.github.com/inary/
Author:
Suleyman POYRAZ (AquilaNipalensis
)
Home-page: http
s://gitlab.com/sulinos/sulinproject/inary
Author:
Ali Riza KESKIN (sulincix) & Suleyman POYRAZ (zaryob
)
Author-email: zaryob.dev@gmail.com
License: GNU GPL
2
License: GNU GPL
3
Description: Inary is the package management system of Sulin Linux and use with Mac OS, Solaris and FreeBSD
Platform: UNKNOWN
inary/cli/addrepo.py
Dosyayı görüntüle @
57368e04
...
...
@@ -23,14 +23,14 @@ import inary.cli.command as command
import
inary.context
as
ctx
import
inary.db
import
inary.errors
import
inary.misc.epoch2string
as
e2s
class
AddRepo
(
command
.
Command
,
metaclass
=
command
.
autocommand
):
__doc__
=
_
(
"""Add a repository
Usage: add-repo <
repo> <
indexuri>
Usage: add-repo <indexuri>
<repo>: name of repository to add
<indexuri>: URI of index file
NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
...
...
@@ -60,10 +60,12 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
repository
.
remove_repo
(
repo
)
def
run
(
self
):
if
len
(
self
.
args
)
==
2
:
if
len
(
self
.
args
)
==
1
:
#We need time based random name.
name
=
e2s
.
nextString
()
indexuri
=
self
.
args
[
0
]
self
.
init
()
name
,
indexuri
=
self
.
args
ctx
.
ui
.
debug
(
name
+
" "
+
indexuri
)
if
ctx
.
get_option
(
'no_fetch'
):
if
not
ctx
.
ui
.
confirm
(
_
(
'Add {} repository without updating the database?
\n
By confirming '
...
...
inary/misc/__init__.py
0 → 100644
Dosyayı görüntüle @
57368e04
from
.
import
*
inary/misc/epoch2string.py
0 → 100644
Dosyayı görüntüle @
57368e04
# -*- coding:utf-8 -*-
#
import
time
letter
=
'abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUWYZ'
len_letter
=
len
(
letter
)
def
nextString
(
length
=
0
):
source
=
str
(
int
(
time
.
time
()
*
10000000
))
if
length
>
len
(
source
)
or
length
<=
0
:
length
=
len
(
source
)
sr
=
""
while
length
>
1
:
sr
=
sr
+
letter
[
int
(
source
[
len
(
source
)
-
length
]
+
source
[
len
(
source
)
-
length
+
1
])
%
len
(
letter
)]
length
=
length
-
1
return
sr
setup.py
Dosyayı görüntüle @
57368e04
...
...
@@ -198,6 +198,7 @@ setup(name="inary",
'inary.analyzer'
,
'inary.cli'
,
'inary.data'
,
'inary.misc'
,
'inary.db'
,
'inary.libraries'
,
'inary.operations'
,
...
...
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