Mailinglist Archive: opensuse-buildservice (248 mails)

< Previous Next >
[opensuse-buildservice] Devel packages not a links to Factory
  • From: Michal Vyskocil <mvyskocil@xxxxxxx>
  • Date: Tue, 13 Oct 2009 15:54:25 +0200
  • Message-id: <200910131554.26209.mvyskocil@xxxxxxx>
Hi,

during work on fix for apache2-mod_jk I found that even if the
Apache:Modules/apache2-mod_jk is marked as devel project, it contains
completely different package with newest version and a different history,
which makes it as devel project unusable. So I converted it to source link and
submit a fix again.

Anyway I used an attached Python script to find all packages not have the
_link in a filelist - their maintainers would consider to fix it. I also
attached a list of affected packages.

BTW: is there any simple way how to convert the package to source link? I used
the sequence

osc linkpac openSUSE:Factory $PACKAGE $PROJECT
osc rremove $PROJECT $PACKAGE `osc ls $PROJECT $PACKAGE | grep -v _link`

but it messed the commit log, because every one deletion is one commit.

Regards
Michal Vyskocil
#!/usr/bin/python

import os, sys

from osc.core import *
from osc.conf import *

conf.get_config()
apiurl=conf.config['apiurl']

PROJECT='openSUSE:Factory'
CACHE='packages.todo'

def is_source_link(apiurl, project, package):
return '_link' in meta_get_filelist(apiurl, project, package)

if not os.path.isfile(CACHE):
with open(CACHE, 'w') as cf:
lst = [p for p in meta_get_packagelist(apiurl, PROJECT) if '_product'
not in p]
cf.write("\n".join(lst))

if os.path.isfile(CACHE):
with open(CACHE, 'r') as cf:
packages = [p.strip() for p in cf.readlines()]
else:
print >>sys.stderr, "Cache file not found!"
sys.exit(1)

for i, package in enumerate(packages):
devel_project = show_develproject(apiurl, PROJECT, package)
if not devel_project:
continue
try:
if not is_source_link(apiurl, devel_project, package):
print "%s/%s" % (devel_project, package)
except urllib2.HTTPError, http_error:
print "NOT FOUND: %s/%s" % (devel_project, package)
except SyntaxError:
print "SyntaxError: %s/%s" % (devel_project, package)
except Exception, exc:
with open(CACHE, 'w') as cf:
cf.write("\n".join(packages[i:]))
print >>sys.stderr, "An exception has been occured, the rest of the
work has been save in %s, please rerun the program" % CACHE
print >>sys.stderr, exc
sys.exit(2)

if os.path.isfile(CACHE):
os.unlink(CACHE)
Apache/apache2
Apache/libapr1
Apache/libapr-util1
Apache:Modules/apache2-mod_auth_ntlm_winbind
Apache:Modules/apache2-mod_fcgid
Apache:Modules/apache2-mod_macro
Apache:Modules/apache2-mod_perl
Apache:Modules/apache2-mod_python
Apache:Modules/apache2-mod_security2
Archiving/p7zip
Archiving/rear
Banshee/banshee-1
Banshee/ipod-sharp
Banshee/podsleuth
Banshee/taglib-sharp
Base:System/eggdbus
Base:System/kbdsniffd
Base:System/lsb-release
Base:System/popt
Base:System/rtkit
devel:gcc/gcc33
devel:languages:perl/perl
devel:languages:perl/perl-Apache2-AuthCookieDBI
devel:languages:perl/perl-Business-ISBN
devel:languages:perl/perl-Business-ISBN-Data
devel:languages:perl/perl-CGI-Simple
devel:languages:perl/perl-Convert-BinHex
devel:languages:perl/perl-Devel-Leak
devel:languages:perl/perl-File-Slurp
devel:languages:perl/perl-GD-Barcode
devel:languages:perl/perl-Pod-POM
devel:languages:perl/perl-Sub-Name
devel:languages:perl/perl-Test-Deep
devel:languages:perl/perl-Test-NoWarnings
devel:languages:perl/perl-Test-Tester
devel:languages:perl/perl-Text-Autoformat
devel:languages:perl/perl-Text-Reform
devel:languages:python:Factory/python
devel:languages:python:Factory/python3
devel:languages:python/python-beaker
devel:languages:python/python-cryptopp
devel:languages:python/python-distutils-extra
devel:languages:python/python-egenix-mx-base
devel:languages:python/python-feedparser
devel:languages:python/python-iniparse
devel:languages:python/python-ldap
devel:languages:python/python-lxml
devel:languages:python/python-m2crypto
devel:languages:python/python-mako
devel:languages:python/python-numpy
devel:languages:python/python-paramiko
devel:languages:python/python-pylint
devel:languages:python/python-setuptools
devel:languages:python/python-simplejson
devel:languages:ruby:extensions/rubygem-abstract
devel:languages:ruby:extensions/rubygem-actionmailer
devel:languages:ruby:extensions/rubygem-actionmailer-2_3
devel:languages:ruby:extensions/rubygem-actionpack
devel:languages:ruby:extensions/rubygem-actionpack-2_3
devel:languages:ruby:extensions/rubygem-activerecord
devel:languages:ruby:extensions/rubygem-activerecord-2_3
devel:languages:ruby:extensions/rubygem-activesupport
devel:languages:ruby:extensions/rubygem-activesupport-2_3
devel:languages:ruby:extensions/rubygem-erubis
devel:languages:ruby:extensions/rubygem-pg
devel:languages:ruby:extensions/rubygem-postgres
devel:languages:ruby:extensions/rubygem-rails
devel:languages:ruby:extensions/rubygem-rails-2_3
devel:languages:ruby:extensions/rubygem-rake
devel:languages:ruby:extensions/rubygem-RedCloth
devel:languages:ruby:extensions/rubygems
devel:languages:ruby:extensions/rubygem-sqlite3
devel:languages:ruby:extensions/ruby-mysql
devel:languages:ruby/ruby
devel:libraries:c_c++/boost
devel:libraries:c_c++/Botan
devel:libraries:c_c++/ctemplate
devel:libraries:c_c++/FastCGI
devel:libraries:c_c++/libconfuse0
devel:libraries:c_c++/libedit
devel:libraries:c_c++/libssh2_org
devel:libraries:c_c++/libzip1
devel:tools/CodeAnalyst
devel:tools/patch
devel:tools/perf
devel:tools:scm/bzr
devel:tools:scm/guilt
devel:tools:scm/quilt
devel:tools:scm:svn/subversion
devel:tools:scm/tig
Education/enca
Education/kseg
Emulators/gnuboy
Emulators/hatari
Emulators/hercules
Emulators/pcsx
Emulators/psx-plugins
Emulators/simh
filesystems/squashfs
games/circuslinux
games/extreme-tuxracer
games/fillets-ng
games/fillets-ng-data
games/frozen-bubble
games/phalanx
games/physfs
games/pingus
games/wesnoth
games/xmahjong
graphics/geeqie
graphics/nvidia-texture-tools
hardware/sbl
hardware/wireless-tools
home:hennevogel:TODO/autotest
home:hennevogel:TODO/ia32el
home:prusnak:scout/scout
Java:packages/classworlds
Java:packages/jgroups
Java:packages/jna
Java:packages/jrefactory
Java:packages/mockobjects
Java:packages/netbeans
Java:packages/netbeans-platform
Java:packages/netbeans-svnclientadapter
Java:packages/objectweb-asm
Java:packages/sat4j
Java:packages/velocity
Java:packages/werken-xpath
Java:packages/xdoclet
Java:packages/xjavadoc
KDE:KDE3/kdbus
KDE:KDE3/kdewebdev3
KDE:KDE3/ktoblzcheck
KDE:KDE3/libakode
Kernel:HEAD/kernel-source
Kernel:kdump/crash
Kernel:kdump/crosscrash
Kernel:kdump/kdump
limal:head/limal
limal:head/limal-ca-mgm
limal:head/limal-devtools
limal:head/limal-nfs-server
limal:head/limal-runlevel
Linux-PAM/pam
Linux-PAM/pam-modules
M17N/844-ksc-pcf
M17N/handedict
M17N/indic-fonts
M17N/novel-pinyin
Mono:Community/gdata-sharp
Mono:Factory/mono-uia
Mono:Factory/uiaatkbridge
Mono:Factory/uiautomationwinforms
multimedia:libs/celt
multimedia:libs/libass
multimedia:libs/libmodplug
network:ha-clustering:Factory/cluster-glue
network/libssh
network:samba:STABLE/ctdb
network:samba:STABLE/samba
network/strongswan
network:utilities/aria2
network:utilities/knock
network:utilities/tcptraceroute
NOT FOUND: KDE:KDE3/basket
NOT FOUND: KDE:KDE4:Factory:Desktop/kdebase4-openSUSE
OFED:Factory/dapl
OFED:Factory/ib-bonding
OFED:Factory/libibcm
OFED:Factory/libibcommon
OFED:Factory/libibmad
OFED:Factory/libibumad
OFED:Factory/libibverbs
OFED:Factory/libipathverbs
OFED:Factory/librdmacm
OFED:Factory/libsdp
OFED:Factory/mpi-selector
OFED:Factory/mvapich2
OFED:Factory/openmpi
OFED:Factory/qlvnictools
OFED:Factory/rds-tools
OFED:Factory/srptools
OFED:Factory/tvflash
OpenOffice.org:UNSTABLE/myspell-dictionaries
OpenOffice.org:UNSTABLE/OpenOffice_org
OpenOffice.org:UNSTABLE/OpenOffice_org-artwork
OpenOffice.org:UNSTABLE/OpenOffice_org-base
OpenOffice.org:UNSTABLE/OpenOffice_org-bootstrap
OpenOffice.org:UNSTABLE/OpenOffice_org-branding-openSUSE
OpenOffice.org:UNSTABLE/OpenOffice_org-branding-upstream
OpenOffice.org:UNSTABLE/OpenOffice_org-calc
OpenOffice.org:UNSTABLE/OpenOffice_org-components
OpenOffice.org:UNSTABLE/OpenOffice_org-converter
OpenOffice.org:UNSTABLE/OpenOffice_org-extensions
OpenOffice.org:UNSTABLE/OpenOffice_org-filters
OpenOffice.org:UNSTABLE/OpenOffice_org-help-en-US
OpenOffice.org:UNSTABLE/OpenOffice_org-hyphen
OpenOffice.org:UNSTABLE/OpenOffice_org-icon-themes
OpenOffice.org:UNSTABLE/OpenOffice_org-impress
OpenOffice.org:UNSTABLE/OpenOffice_org-l10n
OpenOffice.org:UNSTABLE/OpenOffice_org-l10n-extras
OpenOffice.org:UNSTABLE/OpenOffice_org-LanguageTool
OpenOffice.org:UNSTABLE/OpenOffice_org-libs-core
OpenOffice.org:UNSTABLE/OpenOffice_org-libs-extern
OpenOffice.org:UNSTABLE/OpenOffice_org-libs-gui
OpenOffice.org:UNSTABLE/OpenOffice_org-Quickstarter
OpenOffice.org:UNSTABLE/OpenOffice_org-templates-de
OpenOffice.org:UNSTABLE/OpenOffice_org-templates-en
OpenOffice.org:UNSTABLE/OpenOffice_org-templates-labels
OpenOffice.org:UNSTABLE/OpenOffice_org-templates-presentation-layouts
OpenOffice.org:UNSTABLE/OpenOffice_org-templates-ru
OpenOffice.org:UNSTABLE/OpenOffice_org-thesaurus
OpenOffice.org:UNSTABLE/OpenOffice_org-ure
OpenOffice.org:UNSTABLE/OpenOffice_org-writer
openSUSE:Tools/kiwi-instsource-plugins-openSUSE-11-1
Printing:ghostscript/ghostscript-library
Publishing/sablot
security:chipcard/libchipcard4
security:SELinux/mcstrans
security:SELinux/selinux-policy
security:SELinux/setools
security:SELinux/setroubleshoot-plugins
server:database:postgresql/libpgeasy
server:mail/exim
server:mail/msmtp
server:mail/mutt
server:monitoring/logdigest
server:monitoring/nagios
server:monitoring/nagios-nsca
server:monitoring/nagios-plugins
server:monitoring/nagios-plugins-nis
server:monitoring/nagios-plugins-rsync
server:proxy/cntlm
server:proxy/sarg
server:proxy/wwwoffle
system:install:head/checkmedia
system:install:head/gfxboot
system:install:head/hwinfo
system:install:head/libx86emu
system:install:head/linuxrc
system:install:head/syslinux
systemsmanagement:wbem/cmpi-bindings
systemsmanagement:wbem/cmpi-provider-register
systemsmanagement:wbem/cmpi-pywbem-base
vdr/vdr-plugin-cutalot
vdr/vdr-plugin-epgsearch
vdr/vdr-plugin-remote
vdr/vdr-plugin-streamdev
vdr/vdr-plugin-xine
Virtualization/vhostmd
Virtualization:VMware/open-vm-tools
X11:FOX/fox16
X11:Utilities/sax2
X11:Utilities/xclip
X11:xfce/thunar
X11:XOrg/libdrm
X11:XOrg/Mesa
X11:XOrg/MesaGLw
X11:XOrg/x11-input-wacom
X11:XOrg/xkeyboard-config
X11:XOrg/xorg-x11
X11:XOrg/xorg-x11-doc
X11:XOrg/xorg-x11-driver-input
X11:XOrg/xorg-x11-driver-video
X11:XOrg/xorg-x11-fonts
X11:XOrg/xorg-x11-fonts-devel
X11:XOrg/xorg-x11-libfontenc
X11:XOrg/xorg-x11-libICE
X11:XOrg/xorg-x11-libs
X11:XOrg/xorg-x11-libSM
X11:XOrg/xorg-x11-libX11
X11:XOrg/xorg-x11-libX11-ccache
X11:XOrg/xorg-x11-libXau
X11:XOrg/xorg-x11-libxcb
X11:XOrg/xorg-x11-libXdmcp
X11:XOrg/xorg-x11-libXext
X11:XOrg/xorg-x11-libXfixes
X11:XOrg/xorg-x11-libxkbfile
X11:XOrg/xorg-x11-libXmu
X11:XOrg/xorg-x11-libXp
X11:XOrg/xorg-x11-libXpm
X11:XOrg/xorg-x11-libXprintUtil
X11:XOrg/xorg-x11-libXrender
X11:XOrg/xorg-x11-libXt
X11:XOrg/xorg-x11-libXv
X11:XOrg/xorg-x11-proto-devel
X11:XOrg/xorg-x11-server
X11:XOrg/xorg-x11-util-devel
X11:XOrg/xorg-x11-xtrans-devel
YaST:Head/libstorage
YaST:Head/yast2-audit-laf
YaST:Head/yast2-dbus-client
YaST:Head/yast2-dbus-server
YaST:Head/yast2-firstboot
YaST:Head/yast2-multipath
YaST:Head/yast2-qt
YaST:Head/yast2-qt-pkg
YaST:Head/yast2-storage
YaST:Head/yast2-theme
zypp:Head/libqdialogsolver1
zypp:Head/libsatsolver
zypp:Head/libzypp
zypp:Head/libzypp-bindings
zypp:Head/libzypp-testsuite-tools
zypp:Head/zypper
< Previous Next >