X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=527f76b0b585cb1b42754560de9d2f1923ba2185;hb=a73fbc3014f409e89e8d21cd780bf52be36e63d1;hp=1e182958e3f7a06ae161f3a1f1abc710cd9820c8;hpb=e2110abd8654360401bd66eaf32b16e66a92d059;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 1e182958..527f76b0 100644 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -22,7 +22,7 @@ ################################################################################ import codecs, commands, email.Header, os, pwd, re, select, socket, shutil, \ - string, sys, tempfile, traceback + sys, tempfile, traceback import apt_pkg import database @@ -97,14 +97,6 @@ def our_raw_input(prompt=""): ################################################################################ -def str_isnum (s): - for c in s: - if c not in string.digits: - return 0 - return 1 - -################################################################################ - def extract_component_from_section(section): component = "" @@ -616,7 +608,7 @@ argument: orig_filename = filename if filename.endswith(".dak"): - filename = filename[:-6]+".changes" + filename = filename[:-4]+".changes" if not filename.endswith(".changes"): error = "invalid file type; not a changes file"