Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb54b33

Browse files
author
谢炜
committed
fix time display and dep11 download
1 parente520ea1 commiteb54b33

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.*

‎apt-mirror‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ def download_urls(stage, urls):
203203
i+=1
204204
nthreads-=1
205205

206-
print"Begin time: ",time.strftime('%b %a %H:%M:%S %Y')
206+
print"Begin time: ",time.strftime('%c')
207207
output("["+str(len(childrens))+"]... ")
208208
while(childrens):
209209
children,_status=os.wait()
210210
childrens= [cforcinchildrensifc!=children]
211211
output("["+str(len(childrens))+"]... ")
212-
print"\nEnd time: ",time.strftime('%b %a %H:%M:%S %Y'),"\n"
212+
print"\nEnd time: ",time.strftime('%c'),"\n"
213213

214214

215215
defparse_config_line(line):
@@ -493,7 +493,7 @@ def find_dep11_files_in_release(dist_uri, component, arch):
493493
iflen(parts)==3:
494494
_sha1,size,filename=parts
495495
ifre.match(component+r'/dep11/(Components-{arch}\.yml|icons-[^./]+\.tar)\.(gz|bz2|xz)',filename):
496-
add_url_to_download(dist_uri.filename,int(size))
496+
add_url_to_download(dist_uri+filename,int(size))
497497
else:
498498
logging.warn("Malformed checksum line\"%s\" in %s"%
499499
(line,release_uri))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp