Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
da66a788
D
Dak
项目概览
喜羊羊3508
/
Dak
10 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
da66a788
编写于
6月 27, 2018
作者:
B
Bastian Blank
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use absolute imports
上级
21d65544
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
46 addition
and
31 deletion
+46
-31
daklib/changes.py
daklib/changes.py
+5
-3
daklib/contents.py
daklib/contents.py
+2
-2
daklib/daklog.py
daklib/daklog.py
+3
-1
daklib/dbconn.py
daklib/dbconn.py
+4
-2
daklib/formats.py
daklib/formats.py
+4
-2
daklib/lintian.py
daklib/lintian.py
+3
-1
daklib/queue.py
daklib/queue.py
+7
-7
daklib/rm.py
daklib/rm.py
+2
-2
daklib/srcformats.py
daklib/srcformats.py
+4
-1
daklib/urgencylog.py
daklib/urgencylog.py
+4
-2
daklib/utils.py
daklib/utils.py
+8
-8
未找到文件。
daklib/changes.py
浏览文件 @
da66a788
...
...
@@ -27,14 +27,16 @@ Changes class for dak
###############################################################################
from
__future__
import
absolute_import
,
print_function
import
os
import
datetime
from
apt_pkg
import
TagSection
from
utils
import
open_file
,
poolify
,
deb_extract_control
from
config
import
*
from
dbconn
import
*
from
.
utils
import
open_file
,
poolify
,
deb_extract_control
from
.
config
import
*
from
.
dbconn
import
*
###############################################################################
...
...
daklib/contents.py
浏览文件 @
da66a788
...
...
@@ -25,13 +25,13 @@ Helper code for contents generation.
################################################################################
from
__future__
import
print_function
from
__future__
import
absolute_import
,
print_function
from
daklib.dbconn
import
*
from
daklib.config
import
Config
from
daklib.filewriter
import
BinaryContentsFileWriter
,
SourceContentsFileWriter
from
dakmultiprocessing
import
DakProcessPool
from
.
dakmultiprocessing
import
DakProcessPool
from
shutil
import
rmtree
from
tempfile
import
mkdtemp
...
...
daklib/daklog.py
浏览文件 @
da66a788
...
...
@@ -24,11 +24,13 @@ Logging functions
################################################################################
from
__future__
import
absolute_import
,
print_function
import
fcntl
import
os
import
time
import
sys
import
utils
from
.
import
utils
################################################################################
...
...
daklib/dbconn.py
浏览文件 @
da66a788
...
...
@@ -33,6 +33,8 @@
################################################################################
from
__future__
import
absolute_import
,
print_function
import
apt_pkg
import
daklib.daksubprocess
import
os
...
...
@@ -432,7 +434,7 @@ class DBBinary(ORMObject):
@rtype: text
@return: stanza text of the control section.
'''
import
utils
from
.
import
utils
fullpath
=
self
.
poolfile
.
fullpath
with
open
(
fullpath
,
'r'
)
as
deb_file
:
return
utils
.
deb_extract_control
(
deb_file
)
...
...
@@ -2531,7 +2533,7 @@ class DBConn(object):
self
.
__setupmappers
()
except
OperationalError
as
e
:
import
utils
from
.
import
utils
utils
.
fubar
(
"Cannot connect to database (%s)"
%
str
(
e
))
self
.
pid
=
os
.
getpid
()
...
...
daklib/formats.py
浏览文件 @
da66a788
...
...
@@ -31,8 +31,10 @@
################################################################################
from
regexes
import
re_verwithext
from
dak_exceptions
import
UnknownFormatError
from
__future__
import
absolute_import
,
print_function
from
.regexes
import
re_verwithext
from
.dak_exceptions
import
UnknownFormatError
def
parse_format
(
txt
):
...
...
daklib/lintian.py
浏览文件 @
da66a788
...
...
@@ -46,7 +46,9 @@
################################################################################
from
regexes
import
re_parse_lintian
from
__future__
import
absolute_import
,
print_function
from
.regexes
import
re_parse_lintian
def
parse_lintian_output
(
output
):
...
...
daklib/queue.py
浏览文件 @
da66a788
...
...
@@ -26,17 +26,17 @@ Queue utility functions for dak
###############################################################################
from
__future__
import
print_function
from
__future__
import
absolute_import
,
print_function
import
os
import
utils
from
.
import
utils
from
types
import
*
from
dak_exceptions
import
*
from
changes
import
*
from
regexes
import
*
from
config
import
Config
from
dbconn
import
*
from
.
dak_exceptions
import
*
from
.
changes
import
*
from
.
regexes
import
*
from
.
config
import
Config
from
.
dbconn
import
*
################################################################################
...
...
daklib/rm.py
浏览文件 @
da66a788
...
...
@@ -39,7 +39,7 @@
################################################################################
from
__future__
import
print_function
from
__future__
import
absolute_import
,
print_function
import
commands
import
apt_pkg
...
...
@@ -47,7 +47,7 @@ import fcntl
import
sqlalchemy.sql
as
sql
from
re
import
sub
from
collections
import
defaultdict
from
regexes
import
re_build_dep_arch
from
.
regexes
import
re_build_dep_arch
from
daklib.dbconn
import
*
from
daklib
import
utils
...
...
daklib/srcformats.py
浏览文件 @
da66a788
...
...
@@ -31,9 +31,12 @@
# <sgran> sorry, I take it back, I've had a better look now
################################################################################
from
__future__
import
absolute_import
,
print_function
import
re
from
dak_exceptions
import
UnknownFormatError
from
.
dak_exceptions
import
UnknownFormatError
srcformats
=
[]
...
...
daklib/urgencylog.py
浏览文件 @
da66a788
...
...
@@ -26,11 +26,13 @@ Urgency Logger class for dak
###############################################################################
from
__future__
import
absolute_import
,
print_function
import
os
import
time
from
config
import
Config
from
utils
import
warn
,
open_file
,
move
from
.
config
import
Config
from
.
utils
import
warn
,
open_file
,
move
###############################################################################
...
...
daklib/utils.py
浏览文件 @
da66a788
...
...
@@ -22,7 +22,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from
__future__
import
print_function
from
__future__
import
absolute_import
,
print_function
import
commands
import
codecs
...
...
@@ -49,22 +49,22 @@ import errno
import
daklib.config
as
config
import
daklib.daksubprocess
from
dbconn
import
DBConn
,
get_architecture
,
get_component
,
get_suite
,
\
from
.
dbconn
import
DBConn
,
get_architecture
,
get_component
,
get_suite
,
\
get_override_type
,
Keyring
,
session_wrapper
,
\
get_active_keyring_paths
,
\
get_suite_architectures
,
get_or_set_metadatakey
,
DBSource
,
\
Component
,
Override
,
OverrideType
from
sqlalchemy
import
desc
from
dak_exceptions
import
*
from
gpg
import
SignedFile
from
textutils
import
fix_maintainer
from
regexes
import
re_html_escaping
,
html_escaping
,
re_single_line_field
,
\
from
.
dak_exceptions
import
*
from
.
gpg
import
SignedFile
from
.
textutils
import
fix_maintainer
from
.
regexes
import
re_html_escaping
,
html_escaping
,
re_single_line_field
,
\
re_multi_line_field
,
re_srchasver
,
re_taint_free
,
\
re_re_mark
,
re_whitespace_comment
,
re_issource
,
\
re_build_dep_arch
,
re_parse_maintainer
from
formats
import
parse_format
,
validate_changes_format
from
srcformats
import
get_format_from_string
from
.
formats
import
parse_format
,
validate_changes_format
from
.
srcformats
import
get_format_from_string
from
collections
import
defaultdict
################################################################################
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录