Mercurial > treepkg
diff bin/publishdebianpackages.py @ 439:8e0c81870e5e treepkg-status
cleanup modules
fix test_info testcases
added testcases for remove_trailingslashes and expand_filename
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 06 Aug 2010 11:06:08 +0000 |
parents | 3a3cad8f6f60 |
children | 12f3642e1756 |
line wrap: on
line diff
--- a/bin/publishdebianpackages.py Thu Aug 05 16:21:47 2010 +0000 +++ b/bin/publishdebianpackages.py Fri Aug 06 11:06:08 2010 +0000 @@ -20,10 +20,9 @@ from treepkg.readconfig import read_config_section, convert_bool from treepkg.run import call, capture_output from treepkg.cmdexpand import cmdexpand -from treepkg.publish import copy_arch_to_publishdir, expand_filename, \ - prefix_for_remote_command, remove_trailing_slashes +from treepkg.publish import copy_arch_to_publishdir, prefix_for_remote_command -from treepkg.util import md5sum +from treepkg.util import md5sum, expand_filename, remove_trailing_slashes from treepkg.info.status import TreepkgInfo from treepkg.info.data import Package from treepkg.info.data import CacheDb @@ -83,11 +82,6 @@ **variables)) return TreepkgInfo.fromxml(xml) -def get_binary_arch(arch): - if not arch is None and not arch.startswith("binary") and arch != "source": - arch = "binary-" + arch - return arch - def check_package_is_new(packagename, destdir, packagemd5sum): destpackage = os.path.join(destdir, packagename) if not os.path.isfile(destpackage):