dpkg-query -L e dpkg -c?

0

Eu estava instalando meu próprio pacote e descobri que a instalação falha com a seguinte mensagem:

dpkg: error processing archive io.c0ldra1n.classiccover_0.0.7-443+debug_iphoneos-arm.deb (--install):
 unable to create '/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/C.dpkg-new'
(while processing './Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/C'): No such file or directory

Então eu olhei nos diretórios, eu corri o dpkg-query -L para verificar o que estava realmente instalado.

/.
/Library
/Library/Application Support
/Library/Application Support/ClassicCover
/Library/Application Support/ClassicCover/ClassicCover.bundle
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/LOU-EB-wT9-view-aob-HL-njf.nib@
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/pVI-TE-B7r-view-ySh-E6-Ils.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/albumTracksViewController.nib
/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/Info.plist
/Library/MobileSubstrate
/Library/MobileSubstrate/DynamicLibraries
/Library/MobileSubstrate/DynamicLibraries/ClassicCover.dylib
/Library/MobileSubstrate/DynamicLibraries/ClassicCover.plist

Aqui notei que um texto adicional foi adicionado ao arquivo original e o nome do arquivo estava corrompido. No entanto, o dpkg -c me deu:

drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 .
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support
drwxr-xr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support/ClassicCover
drwxrwxr-x c0ldra1n/staff    0 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle
-rwxr-xr-x c0ldra1n/staff 470336 2017-12-27 20:43 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc
-rw-r--r-- c0ldra1n/staff    968 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib
-rw-r--r-- c0ldra1n/staff   9994 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/LOU-EB-wT9-view-aob-HL-njf.nib
-rw-r--r-- c0ldra1n/staff   4885 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/pVI-TE-B7r-view-ySh-E6-Ils.nib
-rw-r--r-- c0ldra1n/staff   1039 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/albumTracksViewController.nib
-rw-r--r-- c0ldra1n/staff    329 2017-12-27 20:59 ./Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/Info.plist
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/MobileSubstrate
drwxr-xr-x c0ldra1n/staff      0 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries
-rwxr-xr-x c0ldra1n/staff 129040 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries/ClassicCover.dylib
-rwxr-xr-x c0ldra1n/staff     51 2017-12-27 20:59 ./Library/MobileSubstrate/DynamicLibraries/ClassicCover.plist

que tem os nomes corretos.

Alguma idéia de por que isso aconteceria? Obrigado antecipadamente!

    
por c0ldra1n dev 28.12.2017 / 01:06

1 resposta

0

A mensagem de erro refere-se a um diretório com o nome

/Library/Application Support/ClassicCover/ClassicCover.bundle/ClassicCover.storyboardc/UIViewController-pVI-TE-B7r.nib.bundle/

(observe a extensão ".bundle" no final do nome) enquanto o comando dpkg -L não contém um diretório com o nome acima.

Portanto, para instalar um arquivo no diretório com o nome mencionado acima, o diretório deve existir primeiro. O que isso não faz. Você precisa criá-lo primeiro.

    
por 28.12.2017 / 10:28

Tags