Aynı commit mesajında yazdığı gibi; "don't ask me why it took this many changes. all tested well."

Geri-iz:
  File "/usr/bin/pisi", line 84, in ?
    cli.run_command()
  File "/usr/lib/pardus/pisi/cli/pisicli.py", line 111, in run_command
    self.command.run()
  File "/usr/lib/pardus/pisi/cli/commands.py", line 534, in run
    pisi.api.install(self.args, ctx.get_option('reinstall'))
  File "/usr/lib/pardus/pisi/operations.py", line 67, in install
    return install_pkg_files(packages)
  File "/usr/lib/pardus/pisi/operations.py", line 173, in install_pkg_files
    atomicoperations.install_single_file(dfn[x])
  File "/usr/lib/pardus/pisi/atomicoperations.py", line 406, in install_single_file
    Install(pkg_location).install(not upgrade)
  File "/usr/lib/pardus/pisi/atomicoperations.py", line 109, in install
    self.extract_install()
  File "/usr/lib/pardus/pisi/atomicoperations.py", line 296, in extract_install
    if (os.path.isfile(fpath) or os.path.islink(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash:
  File "/usr/lib/pardus/pisi/util.py", line 463, in sha1_file
    raise FileError(_("I/O Error: Cannot calculate SHA1 hash of %s") % filename)
DEBUG: PISI API finalized
This commit is contained in:
S.Çağlar Onur
2006-06-19 13:30:11 +00:00
parent eadd91af80
commit 9291324866
+1 -1
View File
@@ -293,7 +293,7 @@ class Install(AtomicOperation):
assert newf.path == oldf.path assert newf.path == oldf.path
if newf.type == 'config' and oldf.type == 'config': # config upgrade if newf.type == 'config' and oldf.type == 'config': # config upgrade
fpath = pisi.util.join_path(ctx.config.dest_dir(), oldf.path) fpath = pisi.util.join_path(ctx.config.dest_dir(), oldf.path)
if (os.path.isfile(fpath) or os.path.islink(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash: if (os.path.isfile(fpath) or os.path.islink(fpath) and not os.path.isdir(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash:
# old config file changed, don't overwrite # old config file changed, don't overwrite
config_changed.append(fpath) config_changed.append(fpath)
if os.path.exists(fpath + '.old'): if os.path.exists(fpath + '.old'):