# Installs Debian packages
# Copyright (C) 2000, 2001, 2002 James Troup <james@nocrew.org>
-# $Id: katie,v 1.81 2002-05-14 15:35:22 troup Exp $
+# $Id: katie,v 1.83 2002-05-19 19:55:29 troup Exp $
# 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
###############################################################################
# Globals
-katie_version = "$Revision: 1.81 $";
+katie_version = "$Revision: 1.83 $";
Cnf = None;
Options = None;
# Undo the work done in katie.py(accept) to help auto-building
# from accepted.
- if Cnf.get("Dinstall::SpecialAcceptedAutoBuild") and \
+ if Cnf.FindB("Dinstall::SpecialAcceptedAutoBuild") and \
changes["distribution"].has_key("unstable"):
now_date = time.strftime("%Y-%m-%d %H:%M", time.localtime(time.time()));
projectB.query("BEGIN WORK");
# Update the symlink to point to the new location in the pool
pool_location = utils.poolify (changes["source"], files[file]["component"]);
src = os.path.join(Cnf["Dir::Pool"], pool_location, os.path.basename(file));
- os.unlink(dest);
+ if os.path.islink(dest):
+ os.unlink(dest);
os.symlink(src, dest);
# Update last_used on any non-upload .orig.tar.gz symlink
if orig_tar_id: