提交 d18cb779 编写于 作者: A Anthony Towns

is_unembargo is run after we've cd'ed into holding

上级 924f122e
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# DB access fucntions # DB access fucntions
# Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org> # Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup <james@nocrew.org>
# $Id: db_access.py,v 1.17 2005-12-05 03:45:12 ajt Exp $ # $Id: db_access.py,v 1.18 2005-12-05 05:08:10 ajt Exp $
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -304,6 +304,7 @@ def get_files_id (filename, size, md5sum, location_id): ...@@ -304,6 +304,7 @@ def get_files_id (filename, size, md5sum, location_id):
def get_or_set_queue_id (queue): def get_or_set_queue_id (queue):
global queue_id_cache global queue_id_cache
if queue_id_cache.has_key(queue): if queue_id_cache.has_key(queue):
return queue_id_cache[queue] return queue_id_cache[queue]
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Checks Debian packages from Incoming # Checks Debian packages from Incoming
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 James Troup <james@nocrew.org> # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 James Troup <james@nocrew.org>
# $Id: jennifer,v 1.62 2005-12-05 04:54:29 ajt Exp $ # $Id: jennifer,v 1.63 2005-12-05 05:08:10 ajt Exp $
# This program is free software; you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
...@@ -45,7 +45,7 @@ re_strip_revision = re.compile(r"-([^-]+)$"); ...@@ -45,7 +45,7 @@ re_strip_revision = re.compile(r"-([^-]+)$");
################################################################################ ################################################################################
# Globals # Globals
jennifer_version = "$Revision: 1.62 $"; jennifer_version = "$Revision: 1.63 $";
Cnf = None; Cnf = None;
Options = None; Options = None;
...@@ -1127,7 +1127,7 @@ def move_to_dir (dest, perms=0660, changesperms=0664): ...@@ -1127,7 +1127,7 @@ def move_to_dir (dest, perms=0660, changesperms=0664):
################################################################################ ################################################################################
def is_unembargo (): def is_unembargo ():
if os.getcwd() == Cnf["Dir::Queue::Disembargo"]: if pkg.directory == Cnf["Dir::Queue::Disembargo"]:
if changes["architecture"].has_key("source"): if changes["architecture"].has_key("source"):
if Options["No-Action"]: return 1 if Options["No-Action"]: return 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册