Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
9a8281bd
Kaydet (Commit)
9a8281bd
authored
Eyl 05, 2014
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move the list of launchpad pkgs to a var.
Change-Id: Id8fed4516069e86b2fbee053e6681e145fdd4336
üst
0b4fba54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
get-bugzilla-attachments-by-mimetype
bin/get-bugzilla-attachments-by-mimetype
+14
-3
No files found.
bin/get-bugzilla-attachments-by-mimetype
Dosyayı görüntüle @
9a8281bd
...
@@ -239,6 +239,19 @@ def get_through_rss_query(queryurl, mimetype, prefix, suffix):
...
@@ -239,6 +239,19 @@ def get_through_rss_query(queryurl, mimetype, prefix, suffix):
print
(
'looking for all bugs having
%
s attachment(s)'
%
mimetype
)
print
(
'looking for all bugs having
%
s attachment(s)'
%
mimetype
)
process
(
query
,
True
,
get_file_bz_ids
(
files
,
prefix
))
process
(
query
,
True
,
get_file_bz_ids
(
files
,
prefix
))
#since searching bugs having attachments with specific mimetypes is not available in launchpad API
#we're iterating over all bugs of the most interesting source packages
launchpad_pkgs
=
(
"abiword"
,
"calligra"
,
"gnumeric"
,
"inkscape"
,
"koffice"
,
"libreoffice"
,
"openoffice.org"
,
"sk1"
,
)
def
get_launchpad_bugs
(
prefix
):
def
get_launchpad_bugs
(
prefix
):
#launchpadlib python module is required to download launchpad attachments
#launchpadlib python module is required to download launchpad attachments
from
launchpadlib.launchpad
import
Launchpad
from
launchpadlib.launchpad
import
Launchpad
...
@@ -246,9 +259,7 @@ def get_launchpad_bugs(prefix):
...
@@ -246,9 +259,7 @@ def get_launchpad_bugs(prefix):
launchpad
=
Launchpad
.
login_anonymously
(
"attachmentdownload"
,
"production"
)
launchpad
=
Launchpad
.
login_anonymously
(
"attachmentdownload"
,
"production"
)
ubuntu
=
launchpad
.
distributions
[
"ubuntu"
]
ubuntu
=
launchpad
.
distributions
[
"ubuntu"
]
#since searching bugs having attachments with specific mimetypes is not available in launchpad API
for
pkg
in
launchpad_pkgs
:
#we're iterating over all bugs of the most interesting source packages
for
pkg
in
[
"libreoffice"
,
"openoffice.org"
,
"abiword"
,
"gnumeric"
,
"koffice"
,
"calligra"
,
"inkscape"
,
"sk1"
]:
srcpkg
=
ubuntu
.
getSourcePackage
(
name
=
pkg
)
srcpkg
=
ubuntu
.
getSourcePackage
(
name
=
pkg
)
pkgbugs
=
srcpkg
.
searchTasks
(
status
=
[
"New"
,
"Fix Committed"
,
"Invalid"
,
"Won't Fix"
,
"Confirmed"
,
"Triaged"
,
"In Progress"
,
"Incomplete"
,
"Incomplete (with response)"
,
"Incomplete (without response)"
,
"Fix Released"
,
"Opinion"
,
"Expired"
])
pkgbugs
=
srcpkg
.
searchTasks
(
status
=
[
"New"
,
"Fix Committed"
,
"Invalid"
,
"Won't Fix"
,
"Confirmed"
,
"Triaged"
,
"In Progress"
,
"Incomplete"
,
"Incomplete (with response)"
,
"Incomplete (without response)"
,
"Fix Released"
,
"Opinion"
,
"Expired"
])
...
...
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