SliTaz SliTaz Forum

You are not logged in.

#1 2015-02-02 21:18:42

llev
Member
Registered: 2011-12-09
Posts: 568

Patch for tazpkg bug when reinstalling a package

Hi,

When you try to reinstall a package with --forced, you often end up with this error (half in French here, but you'll get the idea):

[c]Installation de slim...cp: cannot create regular file[/c]
/usr/bin/slim': Fichier texte occupé

                                                                     [ Echec ]

[c]Proposed patch:[/c]
--- tazpkg~     2015-02-01 17:53:04.000000000 +0100

+++ tazpkg      2015-02-02 22:15:40.209501259 +0100

@@ -674,7 +674,7 @@

                status

        fi

        action "Installing \$PACKAGE..."

-       [ "$(busybox ls fs/* 2> /dev/null)" ] && cp -a fs/* $ROOT/

+       [ "$(busybox ls fs/* 2> /dev/null)" ] && cp -af fs/* $ROOT/

        status

        if [ -s files2remove.list ]; then

                action "Removing old \$PACKAGE..."

`

Keep up the good work wink

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 7 queries executed - Memory usage: 1.52 MiB (Peak: 1.77 MiB) ]