[kernel] r8236 - people/waldi/scripts/snapshot
Bastian Blank
waldi at alioth.debian.org
Sat Jan 27 22:01:59 UTC 2007
Author: waldi
Date: Sat Jan 27 23:01:58 2007
New Revision: 8236
Modified:
people/waldi/scripts/snapshot/package.py
Log:
snapshot/package.py
- Remove path setup.
- Use anonymous checkout.
- Update to new version code.
Modified: people/waldi/scripts/snapshot/package.py
==============================================================================
--- people/waldi/scripts/snapshot/package.py (original)
+++ people/waldi/scripts/snapshot/package.py Sat Jan 27 23:01:58 2007
@@ -17,11 +17,10 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
import os.path, shutil, sys, time
-sys.path.append(os.path.expanduser("~/debian/kernel/dists/trunk/linux-2.6/debian/lib/python"))
import debian_linux
base = os.path.expanduser("~/debian/kernel/snapshot")
-repository = "svn+ssh://svn.debian.org/svn/kernel/"
+repository = "svn://svn.debian.org/kernel/"
orig_base = os.path.expanduser("~/debian/kernel/orig")
def _spawnvefn(mode, file, args, env, func, prepare, prepare_arg):
@@ -135,9 +134,9 @@
checkout_dir = "checkout-" + path.replace('/', '_')
last_file = "last-" + path.replace('/', '_')
checkout_storage = repository_svn(checkout_dir, path)
- changelog_entry = debian_linux.read_changelog(checkout_dir)[0]
- package_name = changelog_entry['Source']
- package_version = changelog_entry['Version']['upstream']
+ changelog_entry = debian_linux.Changelog(checkout_dir)[0]
+ package_name = changelog_entry.source
+ package_version = changelog_entry.version.upstream
package = "%s-%s" % (package_name, package_version)
package_dir = "gen/%s" % package
package_orig = "%s_%s.orig.tar.gz" % (package_name, package_version)
@@ -160,11 +159,11 @@
if not os.path.exists("out"):
os.makedirs("out" , 0755)
- version_upstream = changelog_entry['Version']['upstream']
- version_debian = changelog_entry['Version']['debian']
- if changelog_entry['Distribution'] in ('stable', 'testing', 'unstable', 'experimental'):
+ version_upstream = changelog_entry.version.upstream
+ version_debian = changelog_entry.version.debian
+ if changelog_entry.distribution in ('stable', 'testing', 'unstable', 'experimental'):
version_debian_delemiter = ''
- elif changelog_entry['Distribution'] in ('UNRELEASED',):
+ elif changelog_entry.distribution in ('UNRELEASED',):
version_debian_delemiter = '~'
else:
raise "Unknown distribution"
More information about the Kernel-svn-changes
mailing list