Program sonlandırıldı.
pisi.util.FileError: Girdi/Çıktı hatası: /etc/init.d dosyasının SHA1 kontrol toplamı hesaplanamıyor
Genel yardım için lütfen 'pisi help' komutunu kullanınız.
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 283, in extract_install
Remove.remove_file( old_fileinfo[path] )
File "/usr/lib/pardus/pisi/atomicoperations.py", line 483, in remove_file
if os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash:
File "/usr/lib/pardus/pisi/util.py", line 449, in sha1_file
raise FileError(_("I/O Error: Cannot calculate SHA1 hash of %s") % filename)
DEBUG: PISI API finalized
This commit is contained in:
@@ -479,7 +479,7 @@ class Remove(AtomicOperation):
|
|||||||
elif fileinfo.type == ctx.const.conf:
|
elif fileinfo.type == ctx.const.conf:
|
||||||
# config files are precious, leave them as they are
|
# config files are precious, leave them as they are
|
||||||
# unless they are the same as provided by package.
|
# unless they are the same as provided by package.
|
||||||
if os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash:
|
if (os.path.isfile(fpath) or os.path.islink(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash:
|
||||||
os.unlink(fpath)
|
os.unlink(fpath)
|
||||||
else:
|
else:
|
||||||
if os.path.isfile(fpath) or os.path.islink(fpath):
|
if os.path.isfile(fpath) or os.path.islink(fpath):
|
||||||
|
|||||||
Reference in New Issue
Block a user