aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobert Buchholz <rbu@gentoo.org>2010-01-07 18:51:49 +0000
committerRobert Buchholz <rbu@gentoo.org>2010-01-07 18:51:49 +0000
commitceb7a50298484d2bba2bf8071b02615e677c1820 (patch)
treef0abea5117be6508c0a74b09a4ba2e755a74b47b /bin
parentMITRE sync (diff)
downloadsecurity-ceb7a50298484d2bba2bf8071b02615e677c1820.tar.gz
security-ceb7a50298484d2bba2bf8071b02615e677c1820.tar.bz2
security-ceb7a50298484d2bba2bf8071b02615e677c1820.zip
fix cp error message output for 2010
svn path=/; revision=1814
Diffstat (limited to 'bin')
-rwxr-xr-xbin/target2
-rwxr-xr-xbin/update2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/target b/bin/target
index 5e3aed9..4613abb 100755
--- a/bin/target
+++ b/bin/target
@@ -39,7 +39,7 @@ def print_targets(version, liaisons, prestable, bugno, username):
line_stables = get_stable_arches(keywords, marker, line)
target_keywords = target_keywords.union(line_stables)
line_version = get_version(line)
- if (version and line_version == version) or not version:
+ if (version and line_version == version) or ((not version) and line_version != "9999"):
to_stable_line = lineno
target_version = line_version
diff --git a/bin/update b/bin/update
index c57036a..7ff7359 100755
--- a/bin/update
+++ b/bin/update
@@ -53,7 +53,7 @@ fi
echo "==============================================================================="
for yr in $YEARS; do
echo "[DOWNLOAD] NVD Database '$yr'"
- cp ../nvdcve-$yr.xml . || touch nvdcve-$yr.xml
+ cp ../nvdcve-$yr.xml . 2>/dev/null || touch nvdcve-$yr.xml
wget --timestamping ${VERB} http://nvd.nist.gov/download/nvdcve-$yr.xml && mv nvdcve-$yr.xml ..
done