Change to project/trunk,tags,branches style

This commit is contained in:
Faik Uygur
2009-10-14 12:42:24 +00:00
commit 54e89f07b4
1121 changed files with 136747 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3237scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3237
#
# Problem : If the revdep of the "upgraded only packages"' dependency is not satisfied
# it is also added to the upgrade list and creates "confusion"
#
# # pisi lu
# amarok - KDE için müzik çalıcısı
# ksynaptics - Synaptics touchpad yapılandırma aracı
# libwmf - Microsoft Word gibi uygulamaların kullan.....
# tunepimp - MusicBrainz uyumluluğu olan uygulamalar.......
#
# pisi up tunepimp libwmf ksynaptics
# Depolar güncelleniyor
# * pardus-1.1 deposu güncelleniyor
# pardus-1.1 deposu için güncelleme yok.
# Aşağıdaki paketlerde çakışmalar bulunuyor: [amarok: lastfm-player ile çakışıyor]
# Bu çakışan paketler kaldırılsın mı? (evet/hayır)hayır
#
# Problem Description:
#
# There appears to be some upgrades needed. We only wanted to upgrade some of the packages.
# But the package we did not include in the list of upgrades also is tried to be upgraded.
# The purpose to not include it in the upgrade list, was, it was conflicting with another
# package.
#
# Expected:
#
# pisi either should not upgrade packages out of the given upgrade list or should show
# all the "to be upgraded" list before the conflict warning.
from pisi.scenarioapi.scenario import *
AMAROK = "amarok"
KSYNAPTICS = "ksynaptics"
LIBWMF = "libwmf"
TUNEPIMP = "tunepimp"
LASTFM = "lastfm-player"
let_repo_had(AMAROK, with_conflicts(LASTFM))
let_repo_had(LASTFM)
let_repo_had(TUNEPIMP, with_version("0.3.9"))
let_repo_had(KSYNAPTICS)
let_repo_had(LIBWMF)
let_pisi_had(AMAROK, LASTFM, TUNEPIMP, KSYNAPTICS, LIBWMF)
def run():
repo_version_bumped(TUNEPIMP, with_version("0.4.1"))
repo_version_bumped(AMAROK, with_added_dependency(TUNEPIMP, versionFrom="0.4.1"))
repo_version_bumped(KSYNAPTICS)
repo_version_bumped(LIBWMF)
repo_updated_index()
pisi_upgraded(LIBWMF, TUNEPIMP, KSYNAPTICS)
+49
View File
@@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3390scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3390
#
# Problem : Package reverse dependencies are not updated in pisi database
#
# caglar@zangetsu ~ $ pisi info valgrind
# Yüklü paket:
# Ad: valgrind, versiyon 3.2.0, sürüm 5, inşa 4
# Özet: Valgrind, x86-GNU/Linux ve ppc-GNU/Linux için geliştirilmiş, bellek
# hatalarını ayıklayıcı, açık kaynaklı bir yazılımdır.
# Açıklama: Valgrind, x86-GNU/Linux ve ppc-GNU/Linux için geliştirilmiş, bellek
# hatalarını ayıklayıcı, açık kaynaklı bir yazılımdır.
# Bileşen: programming.tools
# Sağladıkları:
# Bağımlılıklar:xorg openmpi
# Dağıtım: Pardus, Dağıtım Sürümü: 1.1
# Mimari: Any, Yerleşik Boyut: 19128120
# Ters bağımlılıklar: kdesdk
#
# Problem Description:
#
# Valgrind package had a dependency of openmpi package. It is version bumped with removed
# dependeny of openmpi at the repository. Also openmpi is version bumped. After upgrading
# pisi repository and trying to remove openmpi, it is seen that openmpi still has a reverse
# dependency of valgrind.
#
# Expected:
#
# Pisi should have updated the reverse dependency informations correctly and should not show
# a reverse dependency of valgrind while removing openmpi, after a succesfull repository upgrade.
from pisi.scenarioapi.scenario import *
VALGRIND = "valgrind"
OPENMPI = "openmpi"
let_repo_had(VALGRIND, with_dependencies(OPENMPI))
let_repo_had(OPENMPI)
let_pisi_had(VALGRIND, OPENMPI)
def run():
repo_version_bumped(VALGRIND, with_removed_dependencies(OPENMPI))
repo_version_bumped(OPENMPI)
repo_updated_index()
pisi_upgraded()
pisi_removed(OPENMPI)
+38
View File
@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3465scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3465
#
# Problem : Pisi does not warn the user about updated packages in the repository.
#
# sudo pisi it wormux --reinstall
# Bağımlılıkları sağlamak için bu paketler verilen sırada kurulacaktır:
# wormux
# Paketlerin toplam boyu: 17.62 MB
# Paket wormux, pardus-1.1 deposunda bulundu
# Program sonlandırıldı.
# http://paketler.pardus.org.tr/pardus-1.1/wormux-0.7-2-1.pisi indirilemiyor; HTTP
# Error 404: Not Found
#
# Problem Description:
#
# The user had not updated pisi's repository database for some time. Then, when pisi is asked
# to reinstall an installed package, it failed to fetch the requested version of the package.
# Because the package had been upgraded at the repository and the old package has been removed.
#
# Expected:
#
# Pisi should warn the user to update repository.
from pisi.scenarioapi.scenario import *
WORMUX = "wormux"
let_repo_had(WORMUX)
let_pisi_had(WORMUX)
def run():
repo_version_bumped(WORMUX)
repo_updated_index()
pisi_reinstalled(WORMUX)
+48
View File
@@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3481scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3481
#
# Problem : PISI asks if conflicting system.base application to be removed but does not
# allow it without -S
#
# Aşağıdaki paketlerde çakışmalar bulunuyor: [coreutils: hashalot ile çakışıyor]
# Bu çakışan paketler kaldırılsın mı? (evet/hayır)evet
# Emniyet mandalı: taban sistem system.base deki bu paketler kaldırılamıyor: hashalot
# Kaldıracak paket yok.
# Program sonlandırıldı.
# pisi.operations.Error: Çakışmalar var
# Genel yardım için lütfen 'pisi help' komutunu kullanınız.
#
# Problem Description:
#
# PISI upgrade command sees some system.base packages conflict with each other. It asks if you
# want to remove the conflicting package but does not allow it to be removed without
# --bypass-safety parameter.
#
# Expected:
#
# Pisi should remove the package if answered yes.
#
from pisi.scenarioapi.scenario import *
HASHALOT="hashalot"
COREUTILS="coreutils"
GLIBC="glibc"
UTIL_LINUX="util-linux"
let_repo_had(HASHALOT, with_partof("system.base"))
let_repo_had(COREUTILS, with_partof("system.base"))
let_repo_had(GLIBC, with_partof("system.base"))
let_repo_had(UTIL_LINUX, with_partof("system.base"))
let_pisi_had(COREUTILS, HASHALOT, GLIBC, UTIL_LINUX)
def run():
repo_version_bumped(GLIBC)
repo_version_bumped(UTIL_LINUX)
repo_version_bumped(COREUTILS, with_added_conflicts(HASHALOT))
repo_updated_index()
pisi_upgraded()
+47
View File
@@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3558scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3558
#
# Problem : reverse dependency information disappears
#
# faik@iago scenarios $ pisi info kdelibs
# Yüklü paket:
# Ad: kdelibs, versiyon 3.5.4, sürüm 35, inşa 17
# Özet: Tüm KDE programlarının ihtiyaç duyduğu KDE kütüphaneleri
# Açıklama: Tüm KDE programlarının ihtiyaç duyduğu KDE kütüphaneleri
# Bileşen: desktop.kde.base
# Sağladıkları:
# Bağımlılıklar:qt arts freetype fontconfig libxslt libxml2 libpcre libart_lgpl libidn utempter alsa-lib cups tiff aspell
# jasper mDNSResponder ghostscript acl zpspell openexr mit-kerberos tulliana2
# Dağıtım: Pardus, Dağıtım Sürümü: 1.1
# Mimari: Any, Yerleşik Boyut: 222414685
# Ters bağımlılıklar: kdebase gwenview
#
# Problem Description:
#
# Package's reverse dependencies disappears unexpectedly. If a package which has reverse dependencies has been upgraded.
# The revdep list is removed from revdep db. So upgraded package will have an empty revdep list.
#
# Expected:
#
# They should not. :)
#
from pisi.scenarioapi.scenario import *
FLIGHTGEAR = "flightgear"
FLIGHTGEAR_DATA = "flightgear-data"
let_repo_had(FLIGHTGEAR, with_dependencies(FLIGHTGEAR_DATA))
let_repo_had(FLIGHTGEAR_DATA)
let_pisi_had(FLIGHTGEAR, FLIGHTGEAR_DATA)
def run():
pisi_info(FLIGHTGEAR_DATA)
repo_version_bumped(FLIGHTGEAR_DATA)
repo_updated_index()
pisi_upgraded()
pisi_info(FLIGHTGEAR_DATA)
+42
View File
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3732scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3732
#
# Problem : If conflicting packages found while upgrading, by removing those prior to
# fetching and installing the desktop may become unusable while upgrading
# process
#
# Problem Description:
#
# This problem appeared in our xorg package split process. The divided packages were
# all marked as conflicting packages to xorg package. But because the xorg package was
# a conflicting package, it is removed before any fetch operation and installing began.
# So some desktop processes could not be started or used properly until the upgrade
# process ends.
#
# Expected:
#
# PiSi should not remove the conflicting packages unless fetching of all the new upgrade
# packages has finished.
from pisi.scenarioapi.scenario import *
XORG = "xorg"
QT = "qt"
XORG_SERVER = "xorg-server"
XORG_VIDEO = "xorg-video"
XORG_FONT = "xorg-font"
let_repo_had(XORG)
let_repo_had(QT, with_dependencies(XORG))
let_pisi_had(XORG, QT)
def run():
repo_added_package(XORG_VIDEO, with_conflicts(XORG))
repo_added_package(XORG_FONT, with_conflicts(XORG))
repo_added_package(XORG_SERVER, with_conflicts(XORG), with_dependencies(XORG_VIDEO, XORG_FONT))
repo_version_bumped(QT, with_removed_dependencies(XORG), with_added_dependencies(XORG_SERVER))
repo_updated_index()
pisi_upgraded()
+35
View File
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug3865scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=3865
#
# Problem : A need arised between the packages libmp4v2 and faad2 that libmp4v2 has to
# define that it only conflicts with the faad2 until release 3.
#
# Problem Description:
#
# PiSi is incapable to define conflict versioning info. libmp4v2 only conflicts with faad2
# package's release no 3. But because PiSi does not understand that, two packages can not
# be installed together.
#
# Expected:
#
# Versioning info can be defined as in dependency informations.
from pisi.scenarioapi.scenario import *
LIBMP4V2 = "libmp4v2"
FAAD2 = "faad2"
let_repo_had(LIBMP4V2)
let_repo_had(FAAD2, with_version("0.2.1"))
let_pisi_had(LIBMP4V2, FAAD2)
def run():
repo_version_bumped(LIBMP4V2, with_added_conflict(FAAD2, versionTo="0.2.1"))
repo_version_bumped(FAAD2, with_version("0.2.5"))
repo_updated_index()
pisi_upgraded()
+80
View File
@@ -0,0 +1,80 @@
# -*- coding: utf-8 -*-
#
# Scenario : bug4211scen.py
#
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=4211
#
# Problem : PISI does not upgrade or install system.base packages before any other package
#
# Bağımlılıkları sağlamak için bu paketler verilen sırada kurulacaktır:
# util-macros xorg-proto xtrans libXdmcp libXau libX11 libXext libXp libICE libSM
# libXt libXprintUtil libXxf86vm ncurses less iputils gettext kbd sysvinit
# findutils popt gdbm 915resolution db3 mingetty splash-theme freetype fontconfig
# bzip2 expat zlib openssl python-fchksum db1 readline db4 python comar-api glib2
# pwdb cracklib pam shadow libperl perl attr acl coreutils debianutils sysklogd
# comar wireless-tools net-tools sed module-init-tools gawk which hdparm libpcre
# grep tcp-wrappers e2fsprogs util-linux bash baselayout flex unzip libidn cpio
# liblbxutil libdrm dhcpcd libfontenc libXfont libXfontcache libXxf86dga
# libXprintAppUtil libXfixes libXcomposite libXres libXrender libXv libXvMC libdmx
# libXmu libFS libXcursor libXtst libXpm libXaw libAppleWM libxkbfile libxkbui
# libWindowsWM libXi libXevie libXinerama libXdamage libXrandr libXxf86misc
# libXScrnSaver xbitmaps libXft libXTrap liboldX xorg-app xorg-data xorg-util
# xorg-input font-util xorg-font zorg jimmac-xcursor xorg-video xorg-server psmisc
# ddcxinfos texinfo groff groff-utf8 man man-pages coolplug mkinitramfs parted
# grub udev libgcc klibc lzma nss-mdns mudur gzip ncompress tar piksemel file
# python-bsddb3 pisi nano glibc lib-compat miscfiles libpng jpeg libcap
# openldap-client bc dmidecode fbgrab splashutils-misc splashutils pyparted
# openssh sysfsutils pcmciautils zip libusb linux-headers memtest86 procps curl
# vixie-cron slang usbutils pciutils
# Paket(ler)in toplam boyu: 65.91 MB
# Bağımlılıklar yüzünden ek paketler var. Devam etmek istiyor musunuz? (evet/hayır)e
# Paket util-macros, buildfarm deposunda bulundu
# util-macros-1.1.2-2-3.pisi (5.0 KB)100% 0.00 B/s [??:??:??] [bitti]
# util-macros paketi, versiyon 1.1.2, sürüm 2, inşa 3 kuruluyor
# util-macros paketinin dosyaları arşivden çıkartılıyor
# util-macros paketi yapılandırılıyor
# util-macros paketi yapılandırıldı
# util-macros paketi kuruldu
# Paket xorg-proto, buildfarm deposunda bulundu
# xorg-proto-7.2_rc1-2-3.pisi (190.0 KB)100% 77.64 KB/s [00:00:00] [bitti]
# Klavye kesmesi: Çıkıyor...
#
# Problem Description:
#
# In an upgrade or installation PiSi does not upgrade or install system.base packages before any
# other package.
#
# Expected:
#
# PiSi should update or install system.base packages before any other package on the system.
#
from pisi.scenarioapi.scenario import *
OPENOFFICE="openoffice"
SUN_JRE="sun-jre"
UTIL_MACROS="util-macros"
XORG_PROTO="xorg-proto"
COMAR="comar"
MUDUR="mudur"
let_repo_had(COMAR, with_partof("system.base"))
let_repo_had(MUDUR, with_partof("system.base"))
let_repo_had(UTIL_MACROS)
let_repo_had(XORG_PROTO)
let_repo_had(OPENOFFICE, with_dependencies(SUN_JRE))
let_repo_had(SUN_JRE)
let_pisi_had(UTIL_MACROS, XORG_PROTO, COMAR, MUDUR, OPENOFFICE, SUN_JRE)
def run():
repo_version_bumped(SUN_JRE)
repo_version_bumped(OPENOFFICE)
repo_version_bumped(MUDUR)
repo_version_bumped(COMAR)
repo_version_bumped(XORG_PROTO)
repo_version_bumped(UTIL_MACROS)
repo_updated_index()
pisi_upgraded(OPENOFFICE, SUN_JRE)
+57
View File
@@ -0,0 +1,57 @@
#!/usr/bin/python
#-*- coding: utf-8 -*-
#
# Copyright (C) 2006, TUBITAK/UEKAE
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# Please read the COPYING file.
#
# Authors: Faik Uygur <faik@pardus.org.tr>
import os
import shutil
import glob
import sys
from pisi.scenarioapi.constants import *
def clean_out():
for x in glob.glob(consts.repo_path + consts.glob_pisis):
os.unlink(x)
if os.path.exists(consts.pisi_db):
shutil.rmtree(consts.pisi_db)
def run_scen(scenario):
scenario()
def run_all():
print '** Running all scenarios'
for root, dirs, files in os.walk("."):
scensources = filter(lambda x:x.endswith('scen.py'), files)
for scensource in scensources:
clean_out()
running = "\n* Running scenario in %s\n" % scensource
print running
print len(running) * "=" + "\n"
module = __import__(scensource[:len(scensource)-3])
run_scen(module.run)
if __name__ == "__main__":
os.chdir(consts.scenarios_path)
args = sys.argv
if len(args) > 1:
scens = sys.argv[1:]
for scen in scens:
clean_out()
scen += 'scen.py'
print "\n* Running scenario in %s\n" % scen
module = __import__(scen[:len(scen)-3])
run_scen(module.run)
else:
run_all()