diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/astyle-kubuntu kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/astyle-kubuntu --- kubuntu-dev-tools-10.10ubuntu1/bin/astyle-kubuntu 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/astyle-kubuntu 2016-11-24 23:27:16.000000000 +0000 @@ -5,7 +5,7 @@ # Author: Harald Sitter astyle --indent=spaces=4 --brackets=linux --pad-header --add-brackets \ - --indent-labels --align-pointer=name --pad=oper --unpad=paren \ - --one-line=keep-statements --convert-tabs --indent-preprocessor \ + --indent-labels --align-pointer=name --pad-oper --unpad-paren \ + --keep-one-line-statements --convert-tabs --indent-preprocessor \ --lineend=linux --indent-namespaces \ `find -type f -name '*.c'` `find -type f -name '*.cpp'` `find -type f -name '*.h'` diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/buildstatus kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/buildstatus --- kubuntu-dev-tools-10.10ubuntu1/bin/buildstatus 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/buildstatus 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,79 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +cachedir = "~/.launchpadlib/cache/" + +import sys +from launchpadlib.launchpad import Launchpad +from optparse import OptionParser +launchpad = Launchpad.login_with('kubuntu-dev-tools build watch', 'production', cachedir) + +distro = launchpad.distributions["ubuntu"] + +arches = ["i386", "amd64", "armel", "armhf", "powerpc"] + +parser = OptionParser("%prog [options] package release") + +parser.add_option('--short', action='store_true', help="short single line output") +parser.add_option('--pocket', help="release pocket") +parser.add_option('--ppa', help="PPA to use instead of the primary archive") + +(options, args) = parser.parse_args() + +if options.ppa: + ppa = options.ppa + if len(ppa.split(":")) > 1: + ppa = ppa.split(":")[1] + ppaParts = ppa.split("/") + if len(ppaParts) != 2: + parser.print_help() + sys.exit(1) + archive = launchpad.people[ppaParts[0]].getPPAByName(name=ppaParts[1]) +else: + archive = launchpad.distributions['ubuntu'].getArchive(name='primary') + + +if not len(args) == 2: + parser.print_help() + sys.exit(2) + +package = args[0] +release = args[1] +pocket = options.pocket if options.pocket else "Release" + +uploads = archive.getPublishedSources( + source_name=package, + pocket=pocket, + distro_series=distro.getSeries(name_or_version=release) + ) + +if len(uploads) == 0: + print("No build records found") + sys.exit(0) + +builds = uploads[0].getBuilds() +version = uploads[0].source_package_version + +if pocket != "Release": + release_name = release + '-' + pocket.lower() +else: + release_name = release + +sys.stdout.write(package + " [" + version + "|" + release_name + "]:") +if not options.short: + sys.stdout.write('\n') + +arches_found = [] +for build in builds: + #print str(build) + #print build.lp_attributes + #print build.lp_operations + if build.arch_tag in arches and build.arch_tag not in arches_found: + arches_found.append(build.arch_tag) + + if options.short: + sys.stdout.write(" [" + build.arch_tag + "] => " + build.buildstate) + else: + print " " + build.arch_tag + " " + build.buildstate + +if options.short: + sys.stdout.write('\n') diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kbranchmover kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbranchmover --- kubuntu-dev-tools-10.10ubuntu1/bin/kbranchmover 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbranchmover 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,64 @@ +#!/usr/bin/python +#-- +# Copyright (C) 2011 Harald Sitter +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +import sys +from launchpadlib.launchpad import Launchpad + +lp = Launchpad.login_with('branch-mover', 'production') + +team = lp.people['kubuntu-packagers'] +branches = team.getBranches() + +new_project = lp.projects['kubuntu-packaging'] +new_project_name = new_project.name +new_project_link = new_project.self_link + +for branch in branches: + if branch.name != "ubuntu": + print "skipping " + branch.bzr_identity + continue + + old_project_name = lp.load(branch.project_link).name + + print "moving " + branch.bzr_identity + " to " + new_project_name + continueit = False + while True: + query = raw_input('wanna do diz? [Y/n]') + print query + if query == None or query == '' or query == 'y': + break + elif query == 'n': + continueit = True + break + else: + print "error, plz try again" + + if continueit: + continue + + try: + branch.setTarget(project=new_project_link) + except: + pass + + new_branch = lp.load('https://api.launchpad.net/1.0/~kubuntu-packagers/' + new_project_name + '/ubuntu/') + new_branch.name = old_project_name + new_branch.lp_save() diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kbuildppa kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbuildppa --- kubuntu-dev-tools-10.10ubuntu1/bin/kbuildppa 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbuildppa 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +if ARGV[0].nil? + puts("arg1 needs to be version eg 1 or 2 or 3") + exit(1) +end + +version = %x[dpkg-parsechangelog | grep 'Version: ' | cut -d ' ' -f2].chomp +ppaVersion = ARGV[0] +ppaVersionStr = "ppa#{ARGV[0]}" + +system("dch -b -v \"#{version}~#{ppaVersionStr}\" -D quantal 'PPA build'") +if ppaVersion.to_i > 1 + system("bzr-buildpackage -S") +else # Include orig in upload + system("bzr-buildpackage -S -- -sa") +end +system("bzr revert") diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kbzr kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbzr --- kubuntu-dev-tools-10.10ubuntu1/bin/kbzr 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kbzr 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,30 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2011 Harald Sitter +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +def branch(name) + return "lp:~kubuntu-packagers/kubuntu-packaging/#{name}" +end + +cmd = ARGV[0] +name = ARGV[1] + +`bzr #{cmd} #{branch(name)}` + diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kde-l10n-build-status kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kde-l10n-build-status --- kubuntu-dev-tools-10.10ubuntu1/bin/kde-l10n-build-status 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kde-l10n-build-status 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,84 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +#jriddell 2012-01-26 +#copy of kde-sc-build-status so refactoring to stop duplication a good idea +# language list will need updating with every upstream release + +cachedir = "~/.launchpadlib/cache/" + +from launchpadlib.launchpad import Launchpad +launchpad = Launchpad.login_with('kubuntu-dev-tools KDE SC build watch', 'production', cachedir) + +distro = launchpad.distributions["ubuntu"] + +packages = [ +"ar", +"bg", +"bs", +"ca", +"ca-valencia", +"cs", +"da", +"de", +"el", +"engb", +"es", +"et", +"eu", +"fa", +"fi", +"fr", +"ga", +"gl", +"hr", +"hu", +"ia", +"is", +"it", +"ja", +"kk", +"km", +"ko", +"lt", +"lv", +"nb", +"nds", +"nl", +"nn", +"pa", +"pl", +"pt", +"ptbr", +"ro", +"ru", +"si", +"sk", +"sl", +"sr", +"sv", +"tg", +"th", +"tr", +"uk", +"vi", +"wa", +"zhcn", +"zhtw", +] + +arches = ["i386"] + +for package in packages: + package = "kde-l10n-" + package + builds = distro.getBuildRecords(source_name=package, pocket="Release") + recentBuilds = builds[:1] + print package + ":" + arches_found = [] + for build in recentBuilds: + #print str(build) + #print build.lp_attributes + #print build.lp_operations + if build.arch_tag in arches and build.arch_tag not in arches_found: + arches_found.append(build.arch_tag) + print " " + build.arch_tag + " " + build.buildstate diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kde-sc-build-status kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kde-sc-build-status --- kubuntu-dev-tools-10.10ubuntu1/bin/kde-sc-build-status 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kde-sc-build-status 2016-11-24 23:27:16.000000000 +0000 @@ -7,17 +7,124 @@ distro = launchpad.distributions["ubuntu"] -packages = ["kde4libs", "kdepimlibs", "kdeaccessibility", "kdeartwork", "kdebase-runtime", "kdebindings", "kdegames", "kdemultimedia", "kdesdk", "kdeutils", "oxygen-icons", "kdeadmin", "kdebase", "kdebase-workspace", "kdeedu", "kdegraphics", "kdenetwork", "kdeplasma-addons", "kdetoys", "kdewebdev"] +packages = [ +"akonadi", +"ark", +"audiocd-kio", +"blinken", +"cantor", +"dragon", +"ffmpegthumbs", +"filelight", +"gwenview", +"jovie", +"juk", +"kaccessible", +"kactivities", +"kalgebra", +"kalzium", +"kamera", +"kanagram", +"kate", +"kbruch", +"kcalc", +"kcharselect", +"kcolorchooser", +"kde-base-artwork", +"kde-baseapps", +"kde-l10n", +"kde-runtime", +"kde-wallpapers", +"kde-workspace", +"kdeadmin", +"kdeartwork", +"kdegames", +"kdegraphics-mobipocket", +"kdegraphics-strigi-analyzer", +"kdegraphics-thumbnailers", +"kdelibs", +"kdenetwork", +"kdepim", +"kdepim-runtime", +"kdepimlibs", +"kdeplasma-addons", +"kdesdk", +"kdetoys", +"kdewebdev", +"kdf", +"kfloppy", +"kgamma", +"kgeography", +"kgpg", +"khangman", +"kig", +"kimono", +"kiten", +"klettres", +"kmag", +"kmix", +"kmousetool", +"kmouth", +"kmplot", +"kolourpaint", +"konsole", +"korundum", +"kremotecontrol", +"kross-interpreters", +"kruler", +"ksaneplugin", +"kscd", +"ksnapshot", +"kstars", +"ktimer", +"ktouch", +"kturtle", +"kwallet", +"kwordquiz", +"libkcddb", +"libkcompactdisc", +"libkdcraw", +"libkdeedu", +"libkexiv2", +"libkipi", +"libksane", +"marble", +"mplayerthumbs", +"nepomuk-core", +"okular", +"oxygen-icons", +"pairs", +"parley", +"perlkde", +"perlqt", +"printer-applet", +"pykde4", +"qtruby", +"qyoto", +"rocs", +"smokegen", +"smokekde", +"smokeqt", +"step", +"strigi-multimedia", +"superkaramba", +"svgpart", +"sweeper", +"qt4-x11", +"sip4", +"virtuoso"] -arches = ["i386", "amd64", "armel"] +arches = ["i386", "amd64", "armhf"] for package in packages: builds = distro.getBuildRecords(source_name=package, pocket="Release") - recentBuilds = builds[:6] + recentBuilds = builds[:10] print package + ":" + arches_found = [] for build in recentBuilds: #print str(build) #print build.lp_attributes #print build.lp_operations - if build.arch_tag in arches: + if build.arch_tag in arches and build.arch_tag not in arches_found: + arches_found.append(build.arch_tag) print " " + build.arch_tag + " " + build.buildstate diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kgetsource kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kgetsource --- kubuntu-dev-tools-10.10ubuntu1/bin/kgetsource 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kgetsource 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,147 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2011 Harald Sitter +# Copyright (C) 2011 Jonathan Kolberg +# Copyright (C) 2012 Philip Muškovac +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +class Version + attr_reader :version, :upstream_version + + def initialize(version) + @version = version + @upstream_version = get_upstream_version() + @version = @version.chomp + @upstream_version = @upstream_version.chomp + end + + private + def get_upstream_version() + split_version = @version.split(":") + if split_version.length > 1 + return split_version[1] + end + return @version + end +end + +class Tar + attr_reader :source + attr_reader :name, :orig_name + + def initialize(source) + @source = source + @name = name?() + @orig_name = orig_name?() + end + + private + def name?() + if @source.name.eql? "kde4libs" + @source.name = "kdelibs" + end + + return "#{@source.name}-#{@source.version.upstream_version}.tar.xz" + end + + def orig_name?() + if @source.name.eql? "kdelibs" + @source.name = "kde4libs" + end + return "#{@source.name}_#{@source.version.upstream_version}.orig.tar.xz" + end +end + +class Source + attr_reader :name, :version, :series, :tar + + def initialize(name, version, series) + @name = name + @version = Version.new(version) + @series = series + @tar = Tar.new(self) + end + + def get_bzr() + if not File.exists?(name) + puts("bzr checkout lp:~kubuntu-packagers/kubuntu-packaging/#{name}") + `bzr checkout lp:~kubuntu-packagers/kubuntu-packaging/#{name}` + end + `cd #{name} && bzr up` + end + + def get_upstream() + if not File.exists?("build-area") + Dir.mkdir("build-area") + end + if not File.exists?("build-area/#{tar.name}") + `scp ftpubuntu@depot.kde.org:/home/ftpubuntu/#{series}/#{version.upstream_version}/src/#{tar.name} build-area/` + else + puts("#{tar.name} already exists, not downloading again") + end + `cd build-area && ln -sf #{tar.name} #{tar.orig_name}` + end + + def update_changelog() + `cd #{name} && dch -v '4:#{version.upstream_version}-0ubuntu1' -D UNRELEASED 'New upstream release'` + def stringReplace(fileName) + aFile = File.open(fileName, "r") + aString = aFile.read + aFile.close + + left = "kde-sc-dev-latest (>= " + right = ")" + + aString.gsub!(/#{Regexp.quote(left)}(.*?)#{Regexp.quote(right)}/m, + "#{left}#{"4:"+@version.upstream_version}#{right}") + + File.open(fileName, "w") { |file| file << aString } + end + stringReplace(@name+"/debian/control") + end +end + +def more() + puts("NEED MORE ARGS YE BSTD") + exit(1) +end + +if ARGV[0].nil? + more +end + +if ARGV[1].nil? + vers=`khighestversion highest stable` + source = Source.new(ARGV[0],"4:#{vers}","stable") + source.get_bzr() + source.get_upstream() + source.update_changelog() +else + if ARGV[2].nil? + #TODO: make kgetsource autoguess the series + more + else + source = Source.new(ARGV[0], ARGV[1], ARGV[2]) + + source.get_bzr() + source.get_upstream() + source.update_changelog() + end +end + diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kgit kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kgit --- kubuntu-dev-tools-10.10ubuntu1/bin/kgit 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kgit 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,38 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2011 Harald Sitter +# Copyright (C) 2014 Jonathan Riddell +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +directory = ARGV[0] rescue nil +name = ARGV[1] rescue nil + +if ARGV[0] && ARGV[0].include?("/") + directory, name = ARGV[0].split("/") +end + +raise "No remote directory" unless directory +raise "No remote repo specified" unless name + +`git clone debian:#{directory}/#{name}` +Dir.chdir(name) +unless system("git checkout kubuntu_wily_archive") + puts "!Creating new branch!" + `git checkout -b kubuntu_wily_archive` +end diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/khighestversion kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/khighestversion --- kubuntu-dev-tools-10.10ubuntu1/bin/khighestversion 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/khighestversion 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,132 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2011 Jonathan Kolberg +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +class Versions + attr_reader :stable, :unstable, :versions, :highest, :higheststable, :result, :search, :name + + def initialize(search,name) + @stable = [] + tmp = `ssh ftpubuntu@depot.kde.org ls -c /home/ftpubuntu/stable/` + for i in tmp + if i =~ /^[1-9]\.[0-9]\.[0-9]/ + stable << i + end + end + tmp2 = `ssh ftpubuntu@depot.kde.org ls -c /home/ftpubuntu/unstable/` + @unstable = [] + for i in tmp2 + if i =~ /^[1-9]\.[0-9]\.[0-9]/ + unstable << i + end + end + @versions = [] + @highest = "0.0.0" + @higheststable = "0.0.0" + @search = search + "\n" + @versions = stable + unstable + @name = name + end + + def sort!() + versions.sort! + versions.reverse! + stable.sort! + stable.reverse! + unstable.sort! + unstable.reverse! + end + + def higheststable!() + stable.sort! + @higheststable = stable.last + end + + def path! + self.where! + if @result.nil? + puts("THIS VERSION DOESN'T EXIST") + exit(1) + end + path = "/home/ftpubuntu" + @result + "/" + @search + "/src/" + @name + puts + end + + private + def where!() + if @stable.include?(@search) + @result = "stable" + else + if @unstable.include?(@search) + @result = "unstable" + end + end + end +end + +if ARGV[0].nil? + puts("Y U NOT GIMME NARGS? :'(((((") + exit(1) +end + +if ARGV[0] == "version" + v = Versions.new("","") + v.sort! + puts v.versions + exit(0) +end + +if ARGV[0] == "highest" + if ARGV[1].nil? + puts("Y U NOT GIMME NARGS? :'(((((") + exit(1) + end + v = Versions.new("","") + v.sort! + if ARGV[1] == "all" + puts v.versions.first + exit(0) + end + if ARGV[1] == "stable" + puts v.stable.first + exit(0) + end + if ARGV[1] == "unstable" + puts v.unstable.first + exit(0) + end + puts ("Y U NOT GIMME RIGHT ARGS? :'((((") + exit(1) +end + +if ARGV[0] == "path" + if ARGV[1].nil? || ARGV[2].nil? + puts("Y U NOT GIMME NARGS? :'(((((") + exit(1) + end + #kgetsource_helper path NAME VERSION + v = Versions.new(ARGS[2],ARGS[1]) + v.path! +end + +if ARGV[0] + puts("Y U NOT GIMME RIGHT ARGS? :'((((") + exit(1) +end diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/klearppa kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/klearppa --- kubuntu-dev-tools-10.10ubuntu1/bin/klearppa 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/klearppa 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,75 @@ +#!/usr/bin/env python +# +# Script to clear out the packages from a PPA +# +# Copyright (C) 2011-2012 Philip Muskovac +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import sys +import os +#from lazr.restfulclient.errors import HTTPError +from optparse import OptionParser +from launchpadlib.launchpad import Launchpad + +sys.path.append(os.path.abspath(os.path.join('..', 'pylib'))) +from KubuntuDevTools.launchpad import KDTLaunchpad + +parser = OptionParser("%prog [OPTION] ppa:owner/ppa") + +parser.add_option('-c', '--credentials', dest='credentials_file', + help="use the specified credentials file for authentication with " + + "launchpad instead of the keyring") +parser.add_option('--force-yes', dest='force_yes', action='store_true', + help="Don't ask before removing a package") +parser.add_option('-r', '--release', dest='release', + help="Only remove packages for the given release") +parser.add_option('-d', '--deletion-comment', dest='deletion_comment', + help="Reason why this these packages are being deleted") +parser.add_option('-s', '--status', dest='source_status', default="Published", + help="Status of the source package.") + +(options, args) = parser.parse_args() + +lp = KDTLaunchpad.login_with(credentials_file=options.credentials_file) + +if len(args) < 1: + parser.error("Missing parameter") +elif len(args) > 1: + parser.error("Too many parameters") + +ppa = args[0] +if not ppa.find(':') > 0 or not ppa.find('/') > 0: + parser.error("Invalid ppa syntax [%s], needs to be in ppa:/ form." % ppa) +owner = ppa[ppa.find(':') + 1:ppa.find('/')] +PPA = ppa[ppa.find('/') + 1:] +sourcePPA = lp.people[owner].getPPAByName(name=PPA) + +# FIXME: workaround for lazr.restfulclient stopping to provide packages after +# 75 pkgs have been processed +source_list = [] +for source in sourcePPA.getPublishedSources(status=options.source_status): + source_list.append(source) + +# request deletion of packages +for source in source_list: + if options.release and not source.distro_series_link[source.distro_series_link.rfind('/') +1:] == options.release: + continue + if options.force_yes or raw_input("Do you really want to delete %s? (y/N)" % source.source_package_name) == "y": + sys.stdout.write("Requesting deletion of %s ... " % source.source_package_name) + sys.stdout.flush() + source.requestDeletion(removal_comment=options.deletion_comment) + print("done.") diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/klinksource kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/klinksource --- kubuntu-dev-tools-10.10ubuntu1/bin/klinksource 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/klinksource 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,69 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2011 Harald Sitter +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +class Tar + attr_reader :tar_name, :name, :version, :filext + + def initialize(tar_name) + @tar_name = tar_name + parse!(tar_name) + end + + def parse!(tar_name) + regex = Regexp.new('(.*)-(.+)(\.tar\.((gz)|(bz2)|(xz)|(lzma)))') + match_data = regex.match(tar_name) + + if match_data.nil? + puts("YER PATH IS KAPUT, CONGRATS!~!!!@@$!") + exit(1) + end + + @name = match_data[1] + @version = match_data[2] + @filext = match_data[3] + end + + def orig_tar_name?() + # Workaround for kdelibs + regex = Regexp.new('kdelibs') + if ! regex.match(@name).nil? + return "kde4libs_#{@version}.orig#{@filext}" + end + return "#{@name}_#{@version}.orig#{@filext}" + end + + def link!() + `ln -s #{@tar_name} #{orig_tar_name?}` + end + + def move!() + `mv #{@tar_name} #{orig_tar_name?}` + end +end + +if ARGV[0].nil? + puts("Y U NOT GIMME NARGS? :'(((((") + exit(1) +end + +t = Tar.new(ARGV[0]) +puts t.orig_tar_name? +t.link! diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/knextbzr kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/knextbzr --- kubuntu-dev-tools-10.10ubuntu1/bin/knextbzr 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/knextbzr 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby + +def branch(name) + return "lp:~kubuntu-packagers/kubuntu-packaging-next/#{name}" +end + +cmd = ARGV[0] +name = ARGV[1] + +`bzr #{cmd} #{branch(name)}` + diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kopypackages kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kopypackages --- kubuntu-dev-tools-10.10ubuntu1/bin/kopypackages 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kopypackages 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,169 @@ +#!/usr/bin/env python +# +# Script to copy sources from one PPA to another. +# +# Copyright (C) 2011-2013 Philip Muskovac +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import sys +import os +from lazr.restfulclient.errors import HTTPError +from optparse import OptionParser +from launchpadlib.launchpad import Launchpad + +sys.path.append(os.path.abspath(os.path.join('..', 'pylib'))) +from KubuntuDevTools.launchpad import KDTLaunchpad + +parser = OptionParser("%prog [options] " + + "ppa:fromPPA (|all) ppa:toPPA (|all)") + +parser.add_option('-n', '--nobinaries', dest='nobin', action='store_true', + help="Don't copy binary packages") +parser.add_option('-q', '--quiet', dest='quiet', action='store_true', + help="Be quiet and don't print anything on success") +parser.add_option('-c', '--credentials', dest='credentials_file', + help="use the specified credentials file for authentication with " + + "launchpad instead of the keyring") +parser.add_option('-a', '--all', dest='all', action='store_true', + help="Copy all packages in the ppa") +parser.add_option('-p', '--package', dest='pkg', default=None, action='append', + help="Source package to copy, may be be given multiple times") +parser.add_option('-b', '--batch', dest='batchfile', default=None, + help="File with source packages to copy (newline seperated list)") +parser.add_option('--sync', dest='sync', default=False, action='store_true', + help="Do a synchronous copy") + +(options, args) = parser.parse_args() + +if len(args) < 4: + parser.error("Missing parameter") +elif len(args) > 4: + parser.error("Too many parameters") + +if KDTLaunchpad: + lp = KDTLaunchpad.login_with(credentials_file=options.credentials_file, version="devel") +else: + lp = Launchpad.login_with("kubuntu-dev-tools", "production", version="devel") + +# parse PPA names, need to be in ppa:owner/ppa form +ppa = args[0] +if not ppa.find(':') > 0 or not ppa.find('/') > 0: + parser.error("Invalid ppa syntax [%s], needs to be in ppa:/ form." % ppa) +owner = ppa[ppa.find(':') + 1:ppa.find('/')] +PPA = ppa[ppa.find('/') + 1:] +fromPPA = lp.people[owner].getPPAByName(name=PPA) + +ppa = args[2] +if not ppa.find(':') > 0 or not ppa.find('/') > 0: + parser.error("Invalid ppa syntax [%s], needs to be in ppa:/ form." % ppa) +owner = ppa[ppa.find(':') + 1:ppa.find('/')] +PPA = ppa[ppa.find('/') + 1:] +toPPA = lp.people[owner].getPPAByName(name=PPA) + +def from_release(source): + return source.distro_series_link[source.distro_series_link.rfind('/') +1:] + +def is_right_release(source): + # TODO: check if release is valid ? + if args[1].lower() == 'all': + return True + else: + return args[1].lower() == from_release(source) + +def to_release(source): + # TODO: check if release is valid ? + if args[3].lower() == 'all': + return from_release(source) + else: + return args[3].lower() + +def copy_package(source, target, include_binaries, package, from_series, to_series, version): + message_prefix = "Requesting copy of" + if options.sync: + message_prefix = "Copying" + + if not options.quiet: + sys.stdout.write("%s %s from %s [%s] to %s [%s]..." + % (message_prefix, + package + ' ' + version, + args[0], + from_series, + args[2], + to_series)) + sys.stdout.flush() + try: + if options.sync: + target.syncSource(from_archive=source, + include_binaries=include_binaries, + source_name=package, + to_pocket='Release', + to_series=to_series, + version=version) + else: + target.copyPackage(from_archive=source, + include_binaries=include_binaries, + source_name=package, + to_pocket='Release', + to_series=to_series, + version=version, + unembargo=True) + + except HTTPError, e: + print(" FAILED:") + print("[HTTP %s]: %s" % (e.response['status'], e.content[e.content.find('(') + 1:e.content.find(')')])) + else: + print(" done.") + +for source in fromPPA.getPublishedSources(status='Published'): + if options.all: + if is_right_release(source): + copy_package(fromPPA, toPPA, not options.nobin, + source.source_package_name, + from_release(source), + to_release(source), + source.source_package_version) + + elif options.pkg: + for package in options.pkg: + if (source.source_package_name == package and + is_right_release(source)): + copy_package(fromPPA, toPPA, not options.nobin, + source.source_package_name, + from_release(source), + to_release(source), + source.source_package_version) + + elif options.batchfile: + batchfile = open(os.path.expanduser(options.batchfile), 'r') + + package = batchfile.readline() + while (package): + if (source.source_package_name == package.strip() and + is_right_release(source)): + copy_package(fromPPA, toPPA, not options.nobin, + source.source_package_name, + from_release(source), + to_release(source), + source.source_package_version) + + package = batchfile.readline() + + batchfile.close() + + else: + parser.error("Either -a, -p or -b is required") + sys.exit(1) diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kshowbranches kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kshowbranches --- kubuntu-dev-tools-10.10ubuntu1/bin/kshowbranches 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kshowbranches 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,31 @@ +#!/usr/bin/python +#-- +# Copyright (C) 2011 Jonathan Kolberg +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +import sys +from launchpadlib.launchpad import Launchpad + +lp = Launchpad.login_with('kshowbranches', 'production') + +team = lp.people['kubuntu-packagers'] +branches = team.getBranches() + +for branch in branches: + print branch.bzr_identity \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kshowseries kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kshowseries --- kubuntu-dev-tools-10.10ubuntu1/bin/kshowseries 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kshowseries 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,32 @@ +#!/usr/bin/python +#-- +# Copyright (C) 2011 Jonathan Kolberg +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +import sys +from launchpadlib.launchpad import Launchpad + +lp = Launchpad.login_with('kshowseries', 'production') + +ubuntu = lp.distributions["ubuntu"] +series = ubuntu.series_collection_link + +for serie in ubuntu.series: + if serie.active: + print serie.name \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kubuntu-members-email-list kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kubuntu-members-email-list --- kubuntu-dev-tools-10.10ubuntu1/bin/kubuntu-members-email-list 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kubuntu-members-email-list 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,46 @@ +#!/usr/bin/env python +# +# Prints list of all accessible kubuntu-members' mail addresses +# +# Copyright (C) 2012 Harald Sitter +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +import sys +from launchpadlib.launchpad import Launchpad + +def no_credential(): + print "Can't proceed without Launchpad credential." + sys.exit() + +#lp = Launchpad.login_with('kreportneeedspackaging', 'production') +lp = Launchpad.login_with('kubuntu-members-email-list', 'production', credential_save_failed=no_credential) + +teams = lp.people.findTeam(text='kubuntu-members') +for team in teams: + if team.name == 'kubuntu-members': + kubuntu_members = team + +members = kubuntu_members.members +for member in members: + if not member.is_valid: continue + if member.is_team: continue + try: + print "%s@ubuntu.com" % member.name + # Alternative version: print actual email address, this requires the member + # to not have the option for showing the address to other uses disabled. + # NOTE: If the mail is private we get an exception + #print member.preferred_email_address.email + except ValueError: + pass \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/kubuntu-update-symbols kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kubuntu-update-symbols --- kubuntu-dev-tools-10.10ubuntu1/bin/kubuntu-update-symbols 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/kubuntu-update-symbols 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,116 @@ +#!/usr/bin/python + +# Script to update symbols files by fetching the build logs from launchpad. +# Only works for packages managed by pkgkde-symbolshelper. +# +# Copyright (C) 2011, Felix Geyer +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +import sys, re, subprocess, argparse, urllib2, StringIO, gzip, tempfile +from launchpadlib.launchpad import Launchpad + +def get_http_gzip(url): + f = urllib2.urlopen(url) + compresseddata = f.read() + compressedstream = StringIO.StringIO(compresseddata) + gzipper = gzip.GzipFile(fileobj=compressedstream) + return gzipper.read() + +parser = argparse.ArgumentParser(description='Update symbols files by fetching the build logs from launchpad.') +parser.add_argument("-v", "--version") +args = parser.parse_args() + +launchpad = Launchpad.login_anonymously("kubuntu-update-symbols", "production") + +ubuntu = launchpad.distributions["ubuntu"] +archive = ubuntu.main_archive +series = ubuntu.current_series + +try: + package = subprocess.check_output(["dpkg-parsechangelog", "-SSource"]) +except subprocess.CalledProcessError: + print >> sys.stderr, "Error: Calling dpkg-parsechangelog failed, are you in the package directory?" + sys.exit(1) + +package = package.rstrip() + +if len(package) is 0: + print >> sys.stderr, "Error: Parsing the dpkg-parsechangelog output failed." + sys.exit(1) + +sources = archive.getPublishedSources(distro_series=series, exact_match=True, pocket="Proposed", source_name=package) +if len(sources) is 0: + print >> sys.stderr, "Info: ENOSOURCES in Proposed, trying Release instead" + archive.getPublishedSources(distro_series=series, exact_match=True, pocket="Release", source_name=package) + if len(sources) is 0: + print >> sys.stderr, "Error: No sources found, what am I supposed to do now? :(" + sys.exit(1) + +version = sources[0].source_package_version + +builds = ubuntu.getBuildRecords(source_name=package) + +log = tempfile.NamedTemporaryFile() +print >> sys.stderr, "logging to " + log.name +archs = [] + +for build in builds: + if not build.current_source_publication_link: + break + + cur_pub = launchpad.load(build.current_source_publication_link) + if cur_pub.source_package_version != version: + break + + if build.buildstate == "Failed to build": + ftbfs = True + else: + ftbfs = False + + if (build.buildstate == "Successfully built") or ftbfs: + if not ftbfs: + archs.append(build.arch_tag) + + log.file.write(get_http_gzip(build.build_log_url)) + log.file.write("\n") + + if build.buildstate != "Successfully built": + print >> sys.stderr, "Warning: Package hasn't been successfully built on %s: %s\n" % (build.arch_tag, build.buildstate) + +log.file.flush() + +cmd = ["pkgkde-symbolshelper", "batchpatch"] + +cmd.append("-c") +cmd.append(",".join(archs)) + +if args.version: + cmd.append("-v") + cmd.append(args.version) + +cmd.append(log.name) + +print >> sys.stderr, "running " + str(cmd) +returncode = subprocess.call(cmd) +if returncode != 0: + print >> sys.stderr, "Error: Calling pkgkde-symbolshelper failed." + sys.exit(1) + +print >> sys.stderr, "Done." +sys.exit(0) diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/manage-repo-webhooks kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/manage-repo-webhooks --- kubuntu-dev-tools-10.10ubuntu1/bin/manage-repo-webhooks 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/manage-repo-webhooks 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,35 @@ +#!/usr/bin/env python3 + +from launchpadlib.launchpad import Launchpad +import sys + +lp = Launchpad.login_with("kubuntu-dev-tools", "production", version="devel") + +baseUrl = 'http://kci.pangea.pub/git/notifyCommit?url=git%2Bssh://git.launchpad.net/~kubuntu-packagers/kubuntu-packaging/%2Bgit/' + +action = sys.argv[1] + +for repo in lp.git_repositories.getRepositories(target=lp.projects['kubuntu-packaging']): + if repo.owner == lp.people['kubuntu-packagers']: + hookExists = False + for hook in repo.webhooks: + if hook.delivery_url == baseUrl + repo.name: + if action == 'add': + print(repo.name + ' already has a hook') + hookExists = True + elif action == 'enable': + print('enabling hook for ' + repo.name) + hook.active = True + hook.lp_save() + elif action == 'disable': + print('disabling hook for ' + repo.name) + hook.active = False + hook.lp_save() + elif action == 'delete': + print('delete hook for ' + repo.name) + hook.lp_delete() + + if action == 'add' and (len(repo.webhooks) == 0 or not hookExists): + print('add hoook for ' + repo.name) + repo.newWebhook(active=True, delivery_url=baseUrl + repo.name, event_types=[u'git:push:0.1']) + repo.lp_save() diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/newpackage kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/newpackage --- kubuntu-dev-tools-10.10ubuntu1/bin/newpackage 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/newpackage 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,108 @@ +#!/usr/bin/env python +# +# File needs-packaging bugs with the given information +# +# Copyright (C) 2012 Philip Muskovac +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +import sys +import os +from lazr.restfulclient.errors import HTTPError +from optparse import OptionParser + +sys.path.append(os.path.abspath(os.path.join('..', 'pylib'))) +from KubuntuDevTools.launchpad import KDTLaunchpad as Launchpad + +parser = OptionParser("%prog [-n] [description]") + +parser.add_option('-n', '--new', dest='new', action='store_true', + help="This is a new package which isn't yet in the archive.") + +(options, args) = parser.parse_args() + +if len(args) < 2: + pass + # TODO: get the parameters Interactively + package = None + version = "1.0" +else: + package = args[0] + version = args[1] + +if len(args) > 2: + description = ' '.join(args[2:]) +else: + description = None + +lp = Launchpad.login_with() +ubuntu = lp.distributions["ubuntu"] + +# if the package isn't published in ubuntu but in some PPA, then source will be +# != none but the publishing count will be 0 +source = ubuntu.getSourcePackage(name=package) +# count manually as restfulclient in lucid doesn't know how to get the collection size +publishing_count = 0 +publishing_coll = ubuntu.main_archive.getPublishedSources(source_name=package, exact_match=True) +for item in publishing_coll: + publishing_count += 1 +package_exists = source and publishing_count + +try: + if package_exists and (not options.new): + d = "%s needs to be updated to %s" % (package, version) + if description: + d += '\n' + description + t = "Please update %s to %s" % (package, version) + bug = lp.bugs.createBug(description=d, tags=['upgrade-software-version', 'kubuntu', 'kubuntu-packaging'], + target=source, title=t) + elif options.new and (not package_exists): + d = "Please package %s %s" % (package, version) + if description: + d += '\n' + description + # TODO: What to do with the source and license info? + + t = "[needs-packaging] " + package + bug = lp.bugs.createBug(description=d, tags=['needs-packaging', 'kubuntu', 'kubuntu-packaging'], + target=ubuntu, title=t) + + # subscribe kubuntu-bugs so we have a place we can follow it + bug.subscribe(person=lp.people['kubuntu-bugs']) + + elif (not package_exists) and (not options.new): + print("Package %s doesn't exist yet!" % package) + sys.exit(2) + + elif options.new and package_exists: + print("Package %s already exists!" % package) + sys.exit(3) + +except HTTPError, e: + print("HTTPError: " + e.content) + sys.exit(1) + +# Set the importance to wishlist if the permissions allow it +try: + bugtask = bug.bug_tasks[0] + bugtask.importance = 'Wishlist' + bugtask.lp_save() +except HTTPError, e: + pass # Couldn't not set importance -> nevermind. +except: + raise + +# return a link to the created bug +print(bug.web_link) diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/plymouth-rgb-normalizer kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/plymouth-rgb-normalizer --- kubuntu-dev-tools-10.10ubuntu1/bin/plymouth-rgb-normalizer 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/plymouth-rgb-normalizer 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,35 @@ +#!/usr/bin/env ruby +#-- +# Copyright (C) 2012 Harald Sitter +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +#-- + +def normalize(value) + return value / 255.0 +end + +if ARGV.length < 3 + puts("Not enough arguments, need R G B") + return -1 +end + +red = normalize(ARGV[0].to_i) +green = normalize(ARGV[1].to_i) +blue = normalize(ARGV[2].to_i) + +puts "%.4f, %.4f, %.4f" % [red, green, blue] diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/pull-ninjas-source kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/pull-ninjas-source --- kubuntu-dev-tools-10.10ubuntu1/bin/pull-ninjas-source 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/pull-ninjas-source 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,22 @@ +#!/bin/sh + +# Copyright (C) 2012 Felix Geyer +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +exec pull-ppa-source kubuntu-ninjas/ppa $@ diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/pull-ppa-source kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/pull-ppa-source --- kubuntu-dev-tools-10.10ubuntu1/bin/pull-ppa-source 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/pull-ppa-source 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,92 @@ +#!/usr/bin/python + +# Script to download packages from a PPA. +# +# Copyright (C) 2012 Felix Geyer +# Copyright (C) 2013 Philip Muskovac +# +# 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) version 3 or any later version +# accepted by the membership of KDE e.V. (or its successor approved +# by the membership of KDE e.V.), which shall act as a proxy +# defined in Section 14 of version 3 of the license. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +import argparse +import sys +import subprocess +from launchpadlib.launchpad import Launchpad +import time +import urllib + +parser = argparse.ArgumentParser(description="Download package from a PPA.") +parser.add_argument("-d", "--download-only", action="store_true", dest="downloadonly", help="Do not extract the source package.") +parser.add_argument("ppa", help="PPA to download the package from. Format: /") +parser.add_argument("package", help="This is the source package that you would like to be downloaded from the PPA.") +parser.add_argument("release", help="This is the release that you would like the source package to be downloaded from.") + +args = parser.parse_args() + +def downloadFile(lp, url, filename): + f = open(filename, "wb") + f.write(lp._browser.get(url)) + f.close() + +if len(sys.argv) < 3: + parser.print_help() + sys.exit(1) + +lp = Launchpad.login_with("pull-ppa-source", "production") + +ubuntu = lp.distributions["ubuntu"] +lpseries = ubuntu.getSeries(name_or_version=args.release) + +if len(args.ppa.split(":")) > 1: + args.ppa = args.ppa.split(":")[1] +ppaParts = args.ppa.split("/") +if len(ppaParts) != 2: + parser.print_help() + sys.exit(1) +ppa = lp.people[ppaParts[0]].getPPAByName(name=ppaParts[1]) + +sources = ppa.getPublishedSources(distro_series=lpseries, status="Published", source_name=args.package, exact_match=True) +if not sources: + print >> sys.stderr, "Package not found in the PPA" + sys.exit(2) +elif len(sources) > 1: + print >> sys.stderr, "Internal error: len(sources) > 1" + sys.exit(1) + +for url in sources[0].sourceFileUrls(): + filename = url[url.rindex("/")+1:] + filename = urllib.unquote(filename) + print >> sys.stderr, "Downloading " + url + url = url.replace("https://launchpad.net/", "https://api.launchpad.net/devel/") + run = 0 + while (True): + try: + downloadFile(lp, url, filename) + break + except: + if (run >= 5): + raise + run += 1 + time.sleep(1) + + if filename.endswith(".dsc"): + dscName = filename + +if not args.downloadonly: + subprocess.call(["dpkg-source", "-x", dscName]) + +# kate: space-indent on; indent-width 4; replace-tabs on; indent-mode python; remove-trailing-space on; diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/tidy-icon-names.py kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/tidy-icon-names.py --- kubuntu-dev-tools-10.10ubuntu1/bin/tidy-icon-names.py 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/tidy-icon-names.py 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,29 @@ +#!/usr/bin/python3 +import subprocess +files = subprocess.check_output("find . -name hi*png -or -name ox*png", shell=True).splitlines() + +categories = {"app": "apps", + "mime": "mimetypes", + "filesys": "places", + "device": "devices", + "action": "actions", + } + +for icon in files: + print(icon) + currentName = icon.decode("utf-8") + try: + newName = currentName.split("/ox")[0] + "/hi" + currentName.split("/ox")[1] + except IndexError: + newName = currentName + for old,new in categories.items(): + try: + newName = newName.split("-"+old+"-")[0] + "-"+new+"-" + currentName.split("-"+old+"-")[1] + except (IndexError): + True + + print(["git","mv", currentName, newName]) + git = subprocess.check_output(["git","mv", currentName, newName]).splitlines() + print(str(git)) + #print("git mv "+str(currentName) + " " + newName) + diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/update-seed kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-seed --- kubuntu-dev-tools-10.10ubuntu1/bin/update-seed 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-seed 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,16 @@ +#!/bin/bash + +set -e + +workdir=$1 +seedfile=$2 + +cd $workdir + +# Delete current auto-generated list +sed -e '/^.*# added by update-seed$/d' -i $2 + +for pkg in *; do + echo -n " *" >> $2 + grep Package $pkg/debian/control | head -n 1 | sed 's/$/ # added by update-seed/' | cut -f 2 -d \: >> $2 +done diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/update-symbols.py kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-symbols.py --- kubuntu-dev-tools-10.10ubuntu1/bin/update-symbols.py 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-symbols.py 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,39 @@ +#!/usr/bin/python + +import urllib2, tempfile, gzip +import argparse +import time +from launchpadlib.launchpad import Launchpad +launchpad = Launchpad.login_anonymously('ubuntu-dev-tools', 'production') + +ubuntu = launchpad.distributions["ubuntu"] +archive = ubuntu.main_archive +series = ubuntu.current_series + +parser = argparse.ArgumentParser(description='Grab build logs for a source package') +parser.add_argument('-s', '--series', dest='series', + help='Series to grab buildlogs from, if unspecified, \ + uses current dev', + action="store") +parser.add_argument('srcPackage', type=str, help="Source Package name") + +args = parser.parse_args() + +builds = archive.getPublishedSources(exact_match=True, + source_name=args.srcPackage, + distro_series=series)[0].getBuilds() + +for build in builds: + try: + http_request = urllib2.urlopen(build.build_log_url) + except: + print "Can't fetch URL for arch " + build.arch_tag + output = tempfile.NamedTemporaryFile(suffix=build.arch_tag + '.log.gz', delete=False) + print "Fetching build logs for " + args.srcPackage + " arch:" + build.arch_tag + output.write(http_request.read()) + f = gzip.open(output.name, 'r+b') + zipd = f.read() + f_out = open(output.name.replace('.gz', ''), 'w') + f_out.write(zipd) + f_out.close() + output.close() diff -Nru kubuntu-dev-tools-10.10ubuntu1/bin/update-team-bug-subscriptions kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-team-bug-subscriptions --- kubuntu-dev-tools-10.10ubuntu1/bin/update-team-bug-subscriptions 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/bin/update-team-bug-subscriptions 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 + +import argparse + +from launchpadlib.launchpad import Launchpad +from lib.utils import * + +parser = argparse.ArgumentParser(description="Make sure kubuntu-bugs is subscribed to bugs") +parser.add_argument("-c", "--credentials", help="Location of the credenticals file") +parser.add_argument("packagelistfile", help="file to read the packagelist from") + +args = parser.parse_args() + +if args.credentials: + lp = Launchpad.login_with("update-team-bug-subscriptions", "production", credentials_file=args.credentials) +else: + lp = Launchpad.login_with("update-team-bug-subscriptions", "production") + +ubuntu = lp.distributions["ubuntu"] +kubuntuBugs = lp.people['kubuntu-bugs'] + +for source in readPackages(args.packagelistfile): + sourcePackage = ubuntu.getSourcePackage(name=source) + + if not sourcePackage.getSubscription(person=kubuntuBugs): + subscription = sourcePackage.addBugSubscription(subscriber=kubuntuBugs) + + sourcePackage.lp_save() + print("Subscribed to %s" % source) diff -Nru kubuntu-dev-tools-10.10ubuntu1/.bzr-builddeb/default.conf kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/.bzr-builddeb/default.conf --- kubuntu-dev-tools-10.10ubuntu1/.bzr-builddeb/default.conf 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/.bzr-builddeb/default.conf 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +[BUILDDEB] +native = True diff -Nru kubuntu-dev-tools-10.10ubuntu1/debian/changelog kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/changelog --- kubuntu-dev-tools-10.10ubuntu1/debian/changelog 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/changelog 2017-04-21 23:37:49.000000000 +0000 @@ -1,3 +1,59 @@ +kubuntu-dev-tools (12.04ubuntu1~ubuntu16.04~ppa1) xenial; urgency=medium + + * Build for xenial. + + -- José Manuel Santamaría Lema Sat, 22 Apr 2017 01:37:49 +0200 + +kubuntu-dev-tools (12.04ubuntu1) UNRELEASED; urgency=low + + [ Harald Sitter ] + * Introduce kgetsource to help with getting bzr branches, upstream source + tar and other related stuff. Currently only supports ftpmaster. + Usage like: kgetsource kdepim-runtime 4:4.6.90 unstable (where unstable + is the series of upstream stable or unstable). + * Add klinksource to link arbitary tar.* to a qualified .orig.tar.* + * Add kbranchmover for moving branches around + * Add kbzr a tiny wrapper around bzr that expands arbitary names to a + launchpad url for kubuntu packaging + * Add plymouth-rgb-normalizer to normalize 0-255 to plymouth 0.0-1.0 ranges + + [ Felix Geyer ] + * Add kubuntu-update-symbols which updates the symbols files by fetching the + build logs from launchpad. + * Update copyright file. + * Add pull-ninjas-source to download packages from the kubuntu-ninjas PPA. + + [ Jonathan Kolberg ] + * Added kshowbranches to complete kbzr and kgetsource + * Added kshowseries, which shows all active distro series + * Added khighestversion, as helper for kgetsource and for the completer + * Added buildstatus to show the buildstatus of a package + * Made kgetsource autoguess the version and series if non is passed + * Added zsh to Recommends + * Added zsh completion scripts for all commands + * Added manpage for: + - kgetsource + - kshowseries + - kshowbranches + * Bump Standards-Version to 3.9.2 (no change needed) + + [ Philip Muškovac ] + * switch to dh7 packaging + * bump compat to 7 and build-depend on debhelper >= 7 + * Added kopypackages to easily copy packages from one PPA to another + * Add manpage for kopypackages + * kubuntu-dev-tools should depend on kde-runtime and kde-baseapps-bin + instead of kdebase-runtime and kdebase-bin + * Added klearppa to clear out the packages in a PPA + * Add newpackage script to file packaging bugs on LP + * Add pylib/KubuntuDevTools with some python utilities + * Add python-all and kdoctools to build-depends + + [ Harald Sitter ] + * Add kbuildppa for ppa uploads, not particularly scalable yet + + -- Jonathan Kolberg Wed, 11 Apr 2012 23:18:47 +0200 + kubuntu-dev-tools (10.10ubuntu1) maverick; urgency=low * Don't hardcode intrepid in batl10n but use the BD constant diff -Nru kubuntu-dev-tools-10.10ubuntu1/debian/compat kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/compat --- kubuntu-dev-tools-10.10ubuntu1/debian/compat 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/compat 2016-11-24 23:27:16.000000000 +0000 @@ -1 +1 @@ -6 +7 diff -Nru kubuntu-dev-tools-10.10ubuntu1/debian/control kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/control --- kubuntu-dev-tools-10.10ubuntu1/debian/control 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/control 2016-11-24 23:27:16.000000000 +0000 @@ -2,18 +2,31 @@ Section: devel Priority: optional Maintainer: Kubuntu Developers -Build-Depends: debhelper (>= 6), ruby (>= 1.8), rdoc, kdelibs-bin -Standards-Version: 3.8.4 +Build-Depends: debhelper (>= 7), kdelibs-bin, python-all, rdoc, ruby (>= 1.8), + kdoctools +Standards-Version: 3.9.2 +X-Python-Version: 2.7 Homepage: https://launchpad.net/kubuntu-dev-tools/ Vcs-Bzr: https://code.launchpad.net/~kubuntu-members/kubuntu-dev-tools/trunk Package: kubuntu-dev-tools Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ruby (>= 1.8), libopenssl-ruby, - kdebase-runtime, kdebase-bin, devscripts, bzr, pbuilder, xdg-utils, - wget, sudo, qbzr, - python-launchpadlib -Recommends: astyle +Depends: bzr, + devscripts, + kde-baseapps-bin, + kde-runtime, +# libopenssl-ruby, + pbuilder, + python-launchpadlib, + qbzr, + ruby (>= 1.8), + sudo, + wget, + xdg-utils, + ${misc:Depends}, + ${python:Depends}, + ${shlibs:Depends} +Recommends: astyle, zsh Suggests: ubuntu-dev-tools Description: useful tools for Kubuntu developers This is a collection of useful tools that Kubuntu developers use to make their diff -Nru kubuntu-dev-tools-10.10ubuntu1/debian/copyright kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/copyright --- kubuntu-dev-tools-10.10ubuntu1/debian/copyright 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/copyright 2016-11-24 23:27:16.000000000 +0000 @@ -11,7 +11,10 @@ Copyright: - Copyright © 2008-2009 Harald Sitter + Copyright © 2008-2011 Harald Sitter + Copyright © 2011 Felix Geyer + Copyright © 2011-2012 Philip Muškovac + Copyright © 2011-2012 Jonathan Kolberg License: diff -Nru kubuntu-dev-tools-10.10ubuntu1/debian/rules kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/rules --- kubuntu-dev-tools-10.10ubuntu1/debian/rules 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/debian/rules 2016-11-24 23:27:16.000000000 +0000 @@ -1,42 +1,20 @@ #!/usr/bin/make -f -build: build-stamp +%: + dh $@ --with=python2 -build-stamp: - dh_testdir - ruby setup.rb config --shebang=ruby --installdirs=std --prefix=/usr - touch build-stamp - -clean: - dh_testdir - dh_testroot +override_dh_clean: ruby setup.rb clean rm -f .config InstalledFiles build-stamp dh_clean -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - ruby setup.rb install --prefix=$(CURDIR)/debian/kubuntu-dev-tools +override_dh_auto_configure: + ruby setup.rb config --shebang=ruby --installdirs=std --prefix=/usr + dh_auto_configure -binary-indep: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs +override_dh_install: + ruby setup.rb install --prefix=$(CURDIR)/debian/kubuntu-dev-tools + mkdir -p $(CURDIR)/debian/kubuntu-dev-tools/usr/share/zsh/functions/Completion/ + cp zsh_completion/* $(CURDIR)/debian/kubuntu-dev-tools/usr/share/zsh/functions/Completion/ dh_install - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary-arch: build install -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install diff -Nru kubuntu-dev-tools-10.10ubuntu1/docbook/kgetsource.1.docbook kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kgetsource.1.docbook --- kubuntu-dev-tools-10.10ubuntu1/docbook/kgetsource.1.docbook 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kgetsource.1.docbook 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,81 @@ + + +&appname;'> +Jonathan +Kolberg'> + bulldog98@kubuntu.org'> + +]> + + + + KGetSource User's Manual + + Jonathan + Kolberg +
&jonathan.kolberg.email;
+
+ October 06, 2011 + Kubuntu Development Tools +
+ + + &appname; + 1 + + + + &appname; + Get the sources for building KDE packages + + + + + &appname; + package + version + series + + + + + Description + Do you want to get started with packaging? + + No problem! + + Run &app; @package (e.g. &app; kdepim). &app; will download the bzr branch of the packaging and the latest tarball for ftpmaster.kde.org (You have to have shell access) + + &app; will create a dir called package and one called build-area. + + Go into package and run bzr builddeb to build a package out of it. + + My preferred work flow is to run bzr builddeb -S to create a *.dsc and then pbuilder build ../build-area/packagename_version*.dsc. Check for errors and if there is none run bzr commit + + + + Options + + + + + The package you want to download + + + + + + The version of the package you want to download + + + + + + The series of the package you want to download + + + + + +
\ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/docbook/kopypackages.1.docbook kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kopypackages.1.docbook --- kubuntu-dev-tools-10.10ubuntu1/docbook/kopypackages.1.docbook 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kopypackages.1.docbook 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,123 @@ + + +&appname;'> +Philip +Muškovac'> + yofel@kubuntu.org'> + +]> + + + + kopypackages + + Philip + Muškovac +
&author.email;
+
+ March 31, 2012 + Kubuntu Development Tools +
+ + + &appname; + 1 + + + + &appname; + A script to copy packages from one PPA to another + + + + + &appname; + -h + -n + -q + -c credfile + + -a + -p package + -b batchfile + + ppa:fromPPA + from_release + ppa:toPPA + to_release + + + + + Description + This script allows you to copy packages from one launchpad PPA to another. + + + + Options + + + + + shows the command help. + + + + + + Don't copy the binaries for the package but rebuild it in the target ppa instead. + + + + + + Be quiet and don't print anything on success. + + + + + + Use $credfile instead of the keyring to authenticate to launchpad. + + + + + + Copy all packages in the PPA published in from_release. + + + + + + Only copy $package. + + + + + + Read the list of packages that should be copied from $file. + + + + + + The PPA that you want to copy from/to in ppa:owner/ppa form + + + + + + The release you're copying from and to, must be either a valid ubuntu release codename or 'all'. + If you use 'all' both from_release and to_release have to be 'all'. + + + + + + + Examples + &appname; -a ppa:kubuntu-ninja/ppa oneiric ppa:kubuntu-ppa/backports oneiric + + +
diff -Nru kubuntu-dev-tools-10.10ubuntu1/docbook/kshowbranches.1.docbook kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kshowbranches.1.docbook --- kubuntu-dev-tools-10.10ubuntu1/docbook/kshowbranches.1.docbook 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kshowbranches.1.docbook 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,54 @@ + + +&appname;'> +Jonathan +Kolberg'> + bulldog98@kubuntu.org'> + +]> + + + + KShowSeries User's Manual + + Jonathan + Kolberg +
&jonathan.kolberg.email;
+
+ October 06, 2011 + Kubuntu Development Tools +
+ + + &appname; + 1 + + + + &appname; + Get a list of all branches owned by kubuntu-packagers + + + + + &appname; + + + + + Description + Do you want to know what Branches exist? + + No problem! + + Run &app; and you’ll see a list of those. + + + + Options + + + + +
\ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/docbook/kshowseries.1.docbook kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kshowseries.1.docbook --- kubuntu-dev-tools-10.10ubuntu1/docbook/kshowseries.1.docbook 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/docbook/kshowseries.1.docbook 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,54 @@ + + +&appname;'> +Jonathan +Kolberg'> + bulldog98@kubuntu.org'> + +]> + + + + KShowSeries User's Manual + + Jonathan + Kolberg +
&jonathan.kolberg.email;
+
+ October 06, 2011 + Kubuntu Development Tools +
+ + + &appname; + 1 + + + + &appname; + Get a list of all Ubuntu series + + + + + &appname; + + + + + Description + Do you want to know what Ubuntu series exist? + + No problem! + + Run &app; and you’ll see a list of those. + + + + Options + + + + +
\ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/ec2/ec2-natty-builder kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/ec2/ec2-natty-builder --- kubuntu-dev-tools-10.10ubuntu1/ec2/ec2-natty-builder 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/ec2/ec2-natty-builder 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,79 @@ +#prepare ec2 machine for natty, download source from ktown, download packaging from bz2, start compile +#this is fairly specific to my setup and will need alterations depending on what you are wanting to test, feel free to make it more generic + +export LANG=C +export LC_MESSAGES=C + +INSTANCE=`ec2-run-instances ami-8cfb06e5 --instance-type m1.small --region us-east-1 --key jriddell | awk '{print $2}' | grep i-` +echo launched instance: $INSTANCE + +## Loop which waits for instance to load fully +x=0 +ec2running=`ec2-describe-instances | grep $INSTANCE | tr '\t' '\n' | grep running` +until [ -n "$ec2running" ] # (Until unempty string is returned) +do +sleep 2 +ec2running=`ec2-describe-instances | grep $INSTANCE | tr '\t' '\n' | grep running` +x=$(($x+1)) +echo "Server not yet running, $x attempts" +if [ "$x" -ge 100 ] +then +quit +fi +done +echo "Instance running, proceed to aquire hostname" + +DNS=`ec2-describe-instances | grep $INSTANCE | awk '{print $4}'` +echo DNS is $DNS + +sleep 10 #for good luck + +#echo logging in.. ssh -i ~/jriddell.pem ubuntu@${DNS} +#ssh -i ~/ec2/jriddell.pem ubuntu@${DNS} + +echo copying config files +scp -i ~/ec2/jriddell.pem ~/.ssh/* ubuntu@${DNS}:.ssh/ +scp -r ~/.gnupg ubuntu@${DNS}: +scp -r ~/.bashrc ubuntu@${DNS}: +scp -r ~/.bazaar ubuntu@${DNS}: + +echo upgrading machine +ssh ubuntu@${DNS} sudo apt-get update +ssh ubuntu@${DNS} sudo DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -y +#ssh ubuntu@${DNS} sudo sed s,maverick,natty, /etc/apt/sources.list -i +#ssh ubuntu@${DNS} sudo apt-get update +#ssh ubuntu@${DNS} sudo apt-get dist-upgrade -y +ssh ubuntu@${DNS} sudo DEBIAN_FRONTEND=noninteractive apt-get install pbuilder emacs less wget nano devscripts libqt4-dev bzr quilt -y + +cat > NINJAS << EOF +deb https://vorian:x6PLfZ624sW8SnTPK1mK@private-ppa.launchpad.net/kubuntu-ninjas/ppa/ubuntu natty main +EOF +scp scp NINJAS ubuntu@${DNS}: +ssh ubuntu@${DNS} sudo cp NINJAS /etc/apt/sources.list.d/ninjas.list +ssh ubuntu@${DNS} sudo rm NINJAS +rm NINJAS +ssh ubuntu@${DNS} sudo apt-get update + +PACKAGE=${1} +KDEVER=4.6.2 +cat > SETUP-${1} < NINJAS << EOF +deb https://jr:dB4pFW8Mp2phsJXGKbvW@private-ppa.launchpad.net/kubuntu-ninjas/ppa/ubuntu quantal main +EOF +sudo cp NINJAS /etc/apt/sources.list.d/ninjas.list +sudo sed s,precise,quantel, /etc/apt/sources.list +sudo apt-get update +sudo apt-get dist-update + +PACKAGE=${1} +KDEVER=4.8.80 + +mkdir ${PACKAGE} +cd ${PACKAGE} +bzr co lp:~kubuntu-members/${PACKAGE}/ubuntu +scp ftpubuntu@ktown.kde.org:stable/${KDEVER}/src/${PACKAGE}-${KDEVER}.tar.bz2 . +mv ${PACKAGE}-${KDEVER}.tar.bz2 ${PACKAGE}_${KDEVER}.orig.tar.bz2 +tar xf ${PACKAGE}_${KDEVER}.orig.tar.bz2 +cd ${PACKAGE}-${KDEVER} +cp -r ../ubuntu/debian . +dch --newversion 4:${KDEVER}-0ubuntu1~ppa1 "New upstream release" +sudo apt-get build-dep ${PACKAGE} -y --force-yes +debuild + +echo all done on ${PACKAGE} diff -Nru kubuntu-dev-tools-10.10ubuntu1/ec2/kubuntu-dev-server kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/ec2/kubuntu-dev-server --- kubuntu-dev-tools-10.10ubuntu1/ec2/kubuntu-dev-server 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/ec2/kubuntu-dev-server 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,166 @@ +#!/usr/bin/python + +# A script to set up an EC2 server for kubuntu development +# Copyright Canonical 2012 +# Copyright Jonathan Riddell 2012 +# May be copied under the GNU GPL version 2 or later + +import boto +import sys +import time +import subprocess +import paramiko +import getpass +import os.path +import argparse + +defaultUser = getpass.getuser() +localUser = False +defaultSshKey = key_filename="/home/jr/key.pem" +keyFile = open("/home/" + defaultUser + "/.ssh/authorized_keys2") +key = keyFile.read() + +parser = argparse.ArgumentParser(description='Process some integers.') + +parser.add_argument('release', metavar='release', + help='release: natty, oneiric, precise, quantal, raring, saucy') +parser.add_argument('--64', action='store_const', + const=64, default=32, + help='use 64 bit cpu (default 32)') +parser.add_argument('--cpu', action='store_const', + const=True, default=False, + help='use high cpu') +parser.add_argument('--desktop', action='store_const', + const=True, default=False, + help='install kubuntu-desktop') +parser.add_argument('--lp', default=defaultUser, + help='Launchpad user ID to use') +parser.add_argument('--script', + help='Script to run') +parser.add_argument('--scriptarg', + help='Arg to script') + +args = vars(parser.parse_args()) + +lpuser = args['lp'] +if lpuser == defaultUser: + localUser = True #is this machine intended for the person who ran this script? + +def shell(command): + return subprocess.call(command, shell=True) + +def rshell(command): + return subprocess.call("ssh ubuntu@"+dns+" " + command, shell=True) + +release = args['release'] +desktop = args['desktop'] +cpu_bits = str(args['64']) +high_cpu = str(args['cpu']) +""" +if len(sys.argv) == 4: + high_cpu = True +else: + high_cpu = False +""" + +images = { + "saucy": {"64": "ami-e0453b89", "32": "ami-4e493727"}, + "raring": {"64": "ami-c8ccaca1", "32": "ami-82c8a8eb"}, + "quantal": {"64": "ami-0d2a9c64", "32": "ami-5d2a9c34"}, + "precise": {"64": "ami-3c994355", "32": "ami-b89842d1"}, + "oneiric": {"64": "ami-21f53948", "32": "ami-29f43840"}, + "natty": {"64": "ami-71589518", "32": "ami-c15994a8"}, + } + +instance_types = { + "64": ["m1.large", "c1.xlarge"], + "32": ["m1.small", "c1.medium"] + } + +try: + image_id = images[release][cpu_bits] +except KeyError: + print "could not find an image for " + release + " " + cpu_bits + +#if CPU option specified on command line select a High CPU instance type, else normal +if len(sys.argv) == 4: + instance_type = instance_types[cpu_bits][1] +else: + instance_type = instance_types[cpu_bits][0] + +print "instance_type: " + instance_type + +ec2 = boto.connect_ec2() + +reservation = ec2.run_instances(image_id=image_id, key_name='key', instance_type=instance_type) + +instance = reservation.instances[0] + +while instance.state == "pending": + print "pending" + time.sleep(3) + instance.update() + +dns = instance.public_dns_name +print "launched as " + dns + +#it takes a while for sshd to come up after we have dns +time.sleep(30) + +def run_command(command): + global ssh + print "command: " + command + stdin, stdout, stderr = ssh.exec_command(command) + for line in stdout.readlines(): + print line.rstrip() + +def upload(files): + print "uploading: " + str(files) + try: #does directory exist? if not make it + ftp.stat(files[0].split("/")[0]) + except IOError: + if len(files[0].split("/")) > 1 and files[0].split("/")[0] != ".ssh": + ftp.mkdir( files[0].split("/")[0] ) + for file in files: + ftp.put(os.path.expanduser("~/") + file, file) + +ssh = paramiko.SSHClient() +ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) +ssh.connect(dns, username='ubuntu', key_filename=defaultSshKey) +run_command("echo " + key + " >> .ssh/authorized_keys2") +run_command("sudo apt-get update") +run_command("sudo apt-get install devscripts debhelper emacs pkg-kde-tools pbuilder bzr bzr-builddeb git quilt tightvncserver -y") +if desktop: + run_command("sudo apt-get install kubuntu-desktop -y") +run_command("sudo mkdir /mnt/ubuntu") +run_command("sudo chown ubuntu.ubuntu /mnt/ubuntu") +run_command("ln -s /mnt/ubuntu mnt") +ftp = ssh.open_sftp() + +files = [".bazaar/authentication.conf"] +files2 = [".bazaar/bazaar.conf"] +files3 = [".gnupg/pubring.gpg", ".gnupg/random_seed", ".gnupg/secring.gpg", ".gnupg/trustdb.gpg"] +files4 = [".bashrc", ".gitconfig"] +files5 = [".ssh/authorized_keys", ".ssh/authorized_keys2", ".ssh/id_dsa", ".ssh/id_rsa", ".ssh/identity", ".ssh/known_hosts", ".ssh/config"] +files6 = [".byobu/color", ".byobu/keybindings", ".byobu/keybindings.tmux", ".byobu/profile", ".byobu/profile.tmux", ".byobu/reload-required", ".byobu/status", ".byobu/statusrc", ".byobu/windows"] + +upload(files) +run_command("sed s,"+defaultUser+","+lpuser+", .bazaar/authentication.conf") +if localUser: #sensitive files if it's for local user only + upload(files2) + upload(files3) + upload(files4) + upload(files5) + upload(files6) +run_command("chmod 600 /home/ubuntu/.ssh/id_rsa") +run_command("chmod 600 /home/ubuntu/.ssh/id_dsa") + +if args['script'] != None: + upload([args['script']]) + run_command("chmod 755 " + args['script']) + if args['scriptarg'] != None: + run_command(args['script'] + " " + args['scriptarg']) + else: + run_command(args['script']) + +print "now log into ssh ubuntu@" + dns diff -Nru kubuntu-dev-tools-10.10ubuntu1/pre-install.rb kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/pre-install.rb --- kubuntu-dev-tools-10.10ubuntu1/pre-install.rb 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/pre-install.rb 2016-11-24 23:27:16.000000000 +0000 @@ -8,7 +8,7 @@ mkdir_p(dir) Dir.chdir("docbook") for i in Dir.glob("*.1.docbook") - system("meinproc4 --stylesheet /usr/share/kde4/apps/ksgmltools2/docbook/xsl/manpages/docbook.xsl #{i}") + system("meinproc4 --stylesheet /usr/share/kde4/apps/ksgmltools2/customization/kde-include-man.xsl #{i}") end rm_f("index.html") # no idea where that is coming from Dir.chdir("..") diff -Nru kubuntu-dev-tools-10.10ubuntu1/pylib/KubuntuDevTools/launchpad.py kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/pylib/KubuntuDevTools/launchpad.py --- kubuntu-dev-tools-10.10ubuntu1/pylib/KubuntuDevTools/launchpad.py 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/pylib/KubuntuDevTools/launchpad.py 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,109 @@ +# Launchpad tools for kubuntu-dev-tools +# +# Copyright (C) 2012 Philip Muskovac +# +# 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 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from launchpadlib.launchpad import Launchpad +from distutils.version import LooseVersion +import launchpadlib +import os +import stat + +class KDTLaunchpad(): + + @staticmethod + def login_with(application_name="kubuntu-dev-tools", + service_root=None, + launchpadlib_dir=None, + timeout=None, + proxy_info=None, + authorization_engine=None, + allow_access_levels=None, + max_failed_attempts=None, + credentials_file=None, + version=Launchpad.DEFAULT_VERSION, + consumer_name=None, + credential_save_failed=None, + credential_store=None): + ''' Wrapper for Launchpad.login_with() from launchpadlib + + Adds proper credentials file handling and support for various + environment variables. + + Unless needed, call the function without parameters. If one is set + the environment variable for that setting is ignored. + + + ENVIRONMENT VARIABLES + + KUBUNTU_DEV_TOOLS_CREDENTIALS: + File where the credentials are stored. + + KUBUNTU_DEV_TOOLS_SERVICE_ROOT: + Launchpad service that's used. Usually 'staging' or 'production' + By default production is used. + ''' + if not credentials_file: + try: + credentials_file = os.environ['KUBUNTU_DEV_TOOLS_CREDENTIALS'] + except: + pass + + if not service_root: + try: + service_root = os.environ['KUBUNTU_DEV_TOOLS_SERVICE_ROOT'] + except: + # default to production + service_root = "production" + + if credentials_file: + credentials_file=os.path.expanduser(credentials_file) + # since launchpadlib will create the file if it doesn't exist make sure + # the folder it's being created in exists and is user-only rwx + cred_file_dir = credentials_file[:credentials_file.rfind('/')] + if not os.path.isdir(cred_file_dir): + os.makedirs(cred_file_dir) + os.chmod(cred_file_dir, stat.S_IRWXU) + + # Launchpadlib > 1.9 can't handle consumer_name + if (LooseVersion(launchpadlib.__version__) > LooseVersion('1.9')): + return Launchpad.login_with(application_name=application_name, + service_root=service_root, + launchpadlib_dir=launchpadlib_dir, + timeout=timeout, + proxy_info=proxy_info, + authorization_engine=authorization_engine, + allow_access_levels=allow_access_levels, + max_failed_attempts=max_failed_attempts, + credentials_file=credentials_file, + version=version, + consumer_name=None, # broken, don't try to use it + credential_save_failed=credential_save_failed, + credential_store=credential_store) + else: + # lucid support (1.6) + if not allow_access_levels: + allow_access_levels=[] + return Launchpad.login_with(consumer_name=application_name, + service_root=service_root, + launchpadlib_dir=launchpadlib_dir, + timeout=timeout, + proxy_info=proxy_info, + allow_access_levels=allow_access_levels, + max_failed_attempts=max_failed_attempts, + credentials_file=credentials_file, + version=version) diff -Nru kubuntu-dev-tools-10.10ubuntu1/setup.py kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/setup.py --- kubuntu-dev-tools-10.10ubuntu1/setup.py 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/setup.py 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,10 @@ +#!/usr/bin/env python + +from distutils.core import setup + +setup(name='KubuntuDevTools', + version="0.1", + description='Python modules for Kubuntu Dev Tools', + packages=['KubuntuDevTools'], + package_dir={'':'pylib'} + ) diff -Nru kubuntu-dev-tools-10.10ubuntu1/setup.rb kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/setup.rb --- kubuntu-dev-tools-10.10ubuntu1/setup.rb 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/setup.rb 2016-11-24 23:27:16.000000000 +0000 @@ -785,7 +785,7 @@ else require 'rbconfig' end - ::Config::CONFIG + ::RbConfig::CONFIG end def initialize(ardir_root, config) diff -Nru kubuntu-dev-tools-10.10ubuntu1/TODO kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/TODO --- kubuntu-dev-tools-10.10ubuntu1/TODO 2010-07-13 17:33:44.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/TODO 2016-11-24 23:27:16.000000000 +0000 @@ -1,7 +1,4 @@ -* Add docbook for kubuntu-dev-tools (meta manpage for batscripts and gypsy) +* Add docbook for kubuntu-dev-tools * Add readme -* Test centering around batbranch -* Don't bundle but push -* Maybe use bzr-builddeb? - + either way batbuild needs an option to just export the debian dir (e.g. for - working on patches) another possibility is to create batexport ;-) +* Fix zsh completion for: + - kbzr keep in sync with bzr completion \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_astyle-kubuntu kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_astyle-kubuntu --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_astyle-kubuntu 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_astyle-kubuntu 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,3 @@ +#compdef astyle-kubuntu + +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_batpaste kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_batpaste --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_batpaste 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_batpaste 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,3 @@ +#compdef batpaste + +_arguments '1:file to paste:_files' \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_buildstatus kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_buildstatus --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_buildstatus 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_buildstatus 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,18 @@ +#compdef buildstatus + +_kubuntu_completion() { + if ( [[ ${+_kubuntu_completion_cache_packages} -eq 0 ]] || + _cache_invalid KUBUNTU_PACKAGES_CACHE) && ! _retrieve_cache KUBUNTU_PACKAGES_CACHE; + then + _kubuntu_completion_cache_packages=( + ${(f)"$(kshowbranches| grep "lp:~kubuntu-packagers/kubuntu-packaging/" |sed 's/lp:\~kubuntu-packagers\/kubuntu-packaging\///' 2>/dev/null)"} + ) + + _store_cache KUBUNTU_PACKAGES_CACHE _kubuntu_completion_cache_packages + fi + typeset -gH _kubuntu_completion_cache_packages + + compadd -x "package name" -a _kubuntu_completion_cache_packages +} + +_arguments ':the package for which the buildstatus should be showen:_kubuntu_completion'&& return 0 \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kbranchmover kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kbranchmover --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kbranchmover 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kbranchmover 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kbranchmover +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kbzr kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kbzr --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kbzr 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kbzr 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,422 @@ +#compdef kbzr + +#This is a modified version of _bzr shipped with zsh + +local curcontext="$curcontext" state line expl cmd args ret=1 +typeset -A opt_args + +_arguments -C \ + '1: :->cmd' \ + '*:: :->args' && ret=0 + +if (( ! $+_bzr_cmds )); then + typeset -gH _bzr_cmds + _bzr_cmds=(${(f)"$(_call_program bzr bzr shell-complete)"}) +fi + +if [[ $state != 'args' ]]; then + _describe -t subcommand 'subcommand' _bzr_cmds + return 0 +fi + +cmd="$words[1]" +curcontext="${curcontext%:*:*}:bzr-$cmd:" + +(( $+functions[_bzr_unknownFiles] )) || +_bzr_unknownFiles() { + local fileList + fileList=(${(ps:\0:)"$(bzr ls --null --unknown)"}) + compadd -af fileList + return 0 +} + +(( $+functions[_bzr_unknownRoot] )) || +_bzr_unknownRoot() { + local fileList + fileList=(${(ps:\0:)"$(bzr ls --null --from-root --unknown)"}) + compadd -af fileList + return 0 +} + +(( $+functions[_bzr_versionedFiles] )) || +_bzr_versionedFiles() { + local fileList + fileList=(${(ps:\0:)"$(bzr ls --null --versioned)"}) + compadd -af fileList + return 0 +} + +(( $+functions[_bzr_completeParents] )) || +_bzr_completeParents() { + local parentFile=$(bzr root 2>/dev/null)/.bzr/branch/parent + [[ -r $parentFile ]] && compadd -X "Completing parents" $(cat $parentFile) +} + +(( $+functions[_kubuntu_completion] )) || +_kubuntu_completion() { + if ( [[ ${+_kubuntu_completion_cache_packages} -eq 0 ]] || + _cache_invalid KUBUNTU_PACKAGES_CACHE) && ! _retrieve_cache KUBUNTU_PACKAGES_CACHE; + then + _kubuntu_completion_cache_packages=( + ${(f)"$(kshowbranches| grep "lp:~kubuntu-packagers/kubuntu-packaging/" |sed 's/lp:\~kubuntu-packagers\/kubuntu-packaging\///' 2>/dev/null)"} + ) + + _store_cache KUBUNTU_PACKAGES_CACHE _kubuntu_completion_cache_packages + fi + typeset -gH _kubuntu_completion_cache_packages + + compadd -x "branch name" -a _kubuntu_completion_cache_packages +} + +args=( '(-)'{--help,-h}'[show help message]' ) + +case $cmd in +(add) + args+=( + '--dry-run[show what would be added without adding anything]' + '--no-recurse[do not recurse into subdirectories]' + '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' + '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' + '*:unknown files:_bzr_unknownFiles' + ) + ;; + +(annotate|blame|praise) + args+=( + '--all[show annotations on all lines]' + '--long[show date in annotations]' + '(-r --revision)'{--revision=,-r}'[the revision to show]:rev:' + '*:files:_bzr_versionedFiles' + ) + ;; + +(branch|get|clone) + args+=( + '(-r --revision)'{--revision=,-r}'[the revision to get]:rev:' + '--basis=[specify basis branch]:basis:' + ) + if (( CURRENT == 2 )); then + args+=( '*:FROM_LOCATION:_kubuntu_completion' ) + elif (( CURRENT == 3 )); then + args+=( '*:TO_LOCATION:_files -/' ) + fi + ;; + +(checkout|co) + args+=( + '--lightweight[perform a lightweight checkout]' + '(-r --revision)'{--revision=,-r}'[the revision to get]:rev:' + _kubuntu_completion + ) + ;; + +(rename|move|mv) + if (( CURRENT == 2 )); then + args+=( '*:files:_bzr_versionedFiles' ) + else + args=( '*:destination dir:_files -/' ) + fi + ;; + +(cat) + args+=( + '(-r --revision)'{--revision=,-r}'[revision]:rev:' + '*:file:_bzr_versionedFiles' + ) + ;; + +(root) + args+=( '*:file:_files' ) + ;; + +(log) + args+=( + '--forward[reverse direction of revisions]' + '(-l --long --short --log_format)--line[use log format with one line per revision. Same as "--log-format line"]' + '(-l --long --short --line)--log-format=[use the specified log format]:log format:(line short long)' + '(-l --long --short --line --log-format)'{--long,-l}'[use detailed log format. Same as "--log-format long"]' + '(-l --long --log_format)--short[use moderately short log format. Same as "--log-format short"]' + '(-m --message)'{--message=,-m}'[specify regexp]:regexp:' + '(-r --revision)'{--revision=,-r}'[revision or range]:rev or rev range:' + '--show-ids[show file IDs]' + '--timezone=[specify timezone for dates]:timezone:' + '(-v --verbose)'{--verbose,-v}'[show revision manifest]' + '*:file:_bzr_versionedFiles' + ) + ;; + +(resolve|resolved) + args+=( + '--all[resolve all conflicts in this tree]' + '*:file:_bzr_versionedFiles' + ) + ;; + +(status|st|stat) + args+=( + '--all[include unchanged versioned files]' + '(-r --revision)'{--revision=,-r}'[compare working tree with revision]:revision:' + '--show-ids[show file IDs]' + '*:file:_bzr_versionedFiles' + ) + ;; + +(check) + args+=( + '(-v --verbose)'{--verbose,-v}'[display more information]' + '*:DIR:_files -/' + ) + ;; + +(mkdir|renames|update) + args+=( '*:DIR:_files -/' ) + ;; + +(init|upgrade) + args+=( + '--format=[format for repository]:format:(default knit metaweave weave)' + '*:DIR:_files -/' + ) + ;; + +(init-repo|init-repository) + args+=( + '--format=[format for repository]:format:(default knit metaweave weave)' + '--trees[allows branches in repository to have a working tree]' + '*:DIR:_files -/' + ) + ;; + +(remove|rm) + args+=( + '(-v --verbose)'{--verbose,-v}'[display more information]' + '*:file:_bzr_versionedFiles' + ) + ;; + +(pull) + args+=( + '--overwrite[ignore differences, overwrite unconditionally]' + '--remember[remember the specified location as a default]' + '(-r --revision)'{--revision=,-r}'[get a particular revision]:revision:' + '(-v --verbose)'{--verbose,-v}'[display more information]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + +(missing) + args+=( + '(-l --long --short --log_format)--line[use log format with one line per revision. Same as "--log-format line"]' + '(-l --long --short --line)--log-format=[use the specified log format]:log format:(line short long)' + '(-l --long --short --line --log-format)'{--long,-l}'[use detailed log format. Same as "--log-format long"]' + '(-l --long --log_format)--short[use moderately short log format. Same as "--log-format short"]' + '--mine-only[display changes in the local branch only]' + '--reverse[reverse the order of revisions]' + '--show-ids[show internal object ids]' + '--theirs-only[display changes in the remote branch only]' + '(-v --verbose)'{--verbose,-v}'[display more information]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + +(commit|checkin|ci) + args+=( + '(-F --file)'{--file=,-F}'[commit message from file]:message file:' + '--local[perform a local only commit in a bound branch]' + '(-m --message)'{--message=,-m}'[commit message]:message text:' + '--strict[refuse to commit if there are unknown files]' + '--unchanged[include unchanged files]' + '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' + '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' + '*:modified files:_bzr_versionedFiles' + ) + ;; + +(bind|break-lock|reconcile) + _bzr_completeParents + ;; + +(register-branch) + args+=( + '--author=[email of the branch author, if not you]:email:' + '--branch-description=[longer description of the branch]:description:' + '--branch-name=[short name for the branch]:name:' + '--branch-title=[one-sentence description of the branch]:title:' + '--dry-run[prepare the request but do not actually send it]' + '--link-bug=[the bug this branch fixes]:bug-ID:' + '--product=[launchpad product short name to associate with the branch]:product:' + ) + _bzr_completeParents + ;; + +(remerge) + args+=( + '--merge-type=[the type of the merge]:type:' + '--reprocess[reprocess to reduce spurious conflicts]' + '--show-base[show base revision text in conflicts]' + ) + _bzr_completeParents + ;; + +(conflicts|added|deleted|modified|unknowns|directories|ignored|unbind|nick|revno|version) + ;; + +(whoami) + args+=( '--email[only show e-mail address]' ) + ;; + +(inventory) + args+=( + '--kind=[limit output by type]:kind:(file directory symlink)' + '(-r --revision)'{--revision=,-r}'[show inventory of a revision]:revision:' + '--show-ids[show file IDs]' + ) + ;; + +(diff|dif|di) + args+=( + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '--diff-options=[options to pass to gdiff]:diff options:' + '(-p --prefix)'{--prefix,-p}'[set prefix added to old and new filenames]' + '*:files:_files' + ) + ;; + +(export) + args+=( + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '--format=[format of exported file]:format:(dir tar tgz tbz2)' + '--root=[root directory of patch]:_files -/' + '*:destination:_files' + ) + ;; + +(ignore) + args+=( '*:NAME_PATTERN:_bzr_unknownRoot' ) + ;; + +(info) + args+=( + '(-v --verbose)'{--verbose,-v}'[display more information]' + '*:branch:_files -/' + ) + ;; + +(testament) + args+=( + '(-l --long)'{--long,-l}'[use long format]' + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '*:branch:_files -/' + ) + ;; + +(revert|merge-revert) + args+=( + '--no-backup[skip generation of backup~ files]' + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '*:file:_bzr_versionedFiles' + ) + ;; + +(merge) + args+=( + '--force[ignore uncommitted changes]' + '--merge-type:merge type:(diff3 merge3 weave)' + '--remember[remember the specified location as a default]' + '--reprocess[reprocess to reduce spurious conflicts]' + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '--show-base[show base revision text in conflicts]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + +(ls) + args+=( + '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' + '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' + '(-r --revision)'{--revision=,-r}'[revision]:revision:' + '--from-root[print all paths from the root of the branch]' + '--non-recursive[do not recurse into subdirectories]' + '--null[null separate the files]' + '--ignored[print ignored files]' + '--unknown[print unknown files]' + '--versioned[print versioned files]' + ) + ;; + +(switch) + args+=( + '--force[switch even if local commits will be lost]' + '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' + '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + +(help) + args=( + '(-l --long)'{--long,-l}'[use long format]' + '*:subcmds:->cmds' + ) + _arguments -s "$args[@]" && ret=0 + _describe -t subcommand 'subcommand' _bzr_cmds + return 0 + ;; + + # Plugins + +(visualize|visualise|viz|vis) + args+=( '(-r --revision)'{--revision=,-r}'[starting revision]:rev:' ) + ;; + +(gannotate|gblame|gpraise) + args+=( + '--all[show annotations on all lines]' + '--plain[do not hightlight annotation lines]' + '*:files:_bzr_versionedFiles' + ) + ;; + +(push) + args+=( + '--create-prefix[create the path leading up to the branch when missing]' + '--overwrite[ignore differences, overwrite unconditionally]' + '--remember[remember the specified location as a default]' + '*:local repository:_files -/' + ) + _bzr_completeParents + ;; + +(clean-tree) + args+=( + '--dry-run[show files to delete instead of deleting them]' + '--ignored[delete all ignored files]' + '--detritus[delete conflict files, merge backups, failed self-tests, *~, *.tmp, etc]' + ) + ;; + +(uncommit) + args+=( + '--dry-run[do not make any changes]' + '--force[say "yes" to all questions]' + '(-r --revision)'{--revision=,-r}'[the earliest revision to delete]:rev:' + '(-v --verbose)'{--verbose,-v}'[display more information]' + ) + ;; + +(sign-my-commits) + args+=( '--dry-run[do not actually sign anything]' ) + ;; + +(*) + _message "unknown bzr command completion: $cmd" + return 1 + ;; +esac + +_arguments -s "$args[@]" && ret=0 +return $ret \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kde-l10n-build-status kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kde-l10n-build-status --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kde-l10n-build-status 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kde-l10n-build-status 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kde-l10n-build-status +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kde-sc-build-status kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kde-sc-build-status --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kde-sc-build-status 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kde-sc-build-status 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kde-sc-build-status +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kgetsource kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kgetsource --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kgetsource 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kgetsource 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,49 @@ +#compdef kgetsource +function _name() { + + #TODO: do something with following: ssh ftpubuntu@ftpmaster.kde.org ls -c /home/ftpubuntu/stable/4.7.0/src/ + if ( [[ ${+_kubuntu_completion_cache_packages} -eq 0 ]] || + _cache_invalid KUBUNTU_PACKAGES_CACHE) && ! _retrieve_cache KUBUNTU_PACKAGES_CACHE; + then + _kubuntu_completion_cache_packages=( + ${(f)"$(kshowbranches| grep "lp:~kubuntu-packagers/kubuntu-packaging/" |sed 's/lp:\~kubuntu-packagers\/kubuntu-packaging\///' 2>/dev/null)"} + ) + + _store_cache KUBUNTU_PACKAGES_CACHE _kubuntu_completion_cache_packages + fi + typeset -gH _kubuntu_completion_cache_packages + + compadd -a _kubuntu_completion_cache_packages +} + +function _version() { + if ( [[ ${+_kubuntu_completion_cache_versions} -eq 0 ]] || + _cache_invalid KUBUNTU_VERSIONS_CACHE) && ! _retrieve_cache KUBUNTU_VERSIONS_CACHE; + then + _kubuntu_completion_cache_versions=( + ${(f)"$(khighestversion highest stable)"} ${(f)"$(khighestversion highest unstable)"} + ) + + _store_cache KUBUNTU_VERSIONS_CACHE _kubuntu_completion_cache_versions + fi + typeset -gH _kubuntu_completion_cache_versions + + compadd -a _kubuntu_completion_cache_versions +} + +function _series() { + if [ $(echo $words[CURRENT-1]|sed 's/[0-9].[0-9].//' -) -le 9 ]; then + __series=("stable") + else + __series=('unstable') + fi + typeset -gH __series + compadd -a __series +} + +local ret=1 +_arguments \ + ':package name:_name' \ + ':version:_version' \ + ':series:_series' && ret=0 +return ret \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_khighestversion kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_khighestversion --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_khighestversion 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_khighestversion 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,45 @@ +#compdef khighestversion + +if (( ! $+_cmds )); then + typeset -gH _cmds + _cmds=("version:get all versions" "highest:get the highest version of a given series" "path:don’t know what it does atm") +fi + +_arguments -C \ + '1: :->cmd' \ + '*:: :->args' && ret=0 + +if [[ $state != 'args' ]]; then + _describe -t subcommand 'first argument' _cmds + return 0 +fi + +cmd="$words[1]" + +function _highest() { + __highest=( \ + 'all' 'stable' 'unstable' \ + ) + typeset -gH __highest + + compadd -a __highest +} + +case $cmd in + version) + _message "no more arguments"&& ret=0 + ;; + highest) + _arguments ':the series for which the highest version should be given:_highest'&& ret=0 + ;; + path) + _message "no more arguments" && ret=0 + ;; + + (*) + _message "unknown khighestversion completion: $cmd" + return 1 + ;; +esac + +return $ret \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_klinksource kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_klinksource --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_klinksource 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_klinksource 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,3 @@ +#compdef klinksource + +_arguments "1:tar to link:_files -g '*-?*.tar.(gz|bz2|xz|lzma)'" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kshowbranches kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kshowbranches --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kshowbranches 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kshowbranches 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kshowbranches +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kshowseries kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kshowseries --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kshowseries 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kshowseries 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kshowseries +_message "no more arguments" \ No newline at end of file diff -Nru kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kubuntu-update-symbols kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kubuntu-update-symbols --- kubuntu-dev-tools-10.10ubuntu1/zsh_completion/_kubuntu-update-symbols 1970-01-01 00:00:00.000000000 +0000 +++ kubuntu-dev-tools-12.04ubuntu1~ubuntu16.04~ppa1/zsh_completion/_kubuntu-update-symbols 2016-11-24 23:27:16.000000000 +0000 @@ -0,0 +1,2 @@ +#compdef kubuntu-update-symbols +_message "no more arguments" \ No newline at end of file