You are not logged in.
Hello!
I have modified successfully a package for gnome-terminal, but during my first attempted to install it, this happened:
(1/1) checking available disk space [#####################################################] 100%
:: Processing package changes...
/tmp/alpm_hsQBnj/.INSTALL: line 1: !DOCTYPE: No such file or directory
/tmp/alpm_hsQBnj/.INSTALL: line 2: syntax error near unexpected token `newline'
/tmp/alpm_hsQBnj/.INSTALL: line 2: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
/usr/bin/bash: pre_upgrade: command not found
error: command failed to execute correctly
(1/1) reinstalling gnome-terminal [#####################################################] 100%
/tmp/alpm_md3Bl4/.INSTALL: line 1: !DOCTYPE: No such file or directory
/tmp/alpm_md3Bl4/.INSTALL: line 2: syntax error near unexpected token `newline'
/tmp/alpm_md3Bl4/.INSTALL: line 2: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
/usr/bin/bash: post_upgrade: command not found
error: command failed to execute correctly
I know why this happened, the file 'gnome-terminal.install' contained the HTML representation from 'gnome-terminal.install' from the here instead of the plain-text content. I fixed this and installed the package again without any errors.
Is it possible, that I have broken up something? I don't think so. The .install script cares about the gconf-schemas, here the original and current content:
post_install() {
glib-compile-schemas /usr/share/glib-2.0/schemas
}
pre_upgrade() {
if [ -f /usr/share/gconf/schemas/gnome-terminal.schemas ]; then
gconfpkg --uninstall gnome-terminal
fi
}
post_upgrade() {
post_install $1
}
Thanks
Hoschi
Stupid 'me'
PS: The new gnome-terminal from the package works fine so far.
PPS: Anyway. Why are we using gconf, I think gnome-terminal is using dconf for years?
Last edited by hoschi (2016-03-28 15:49:53)
Offline