

| The Following 7 Users Say Thank You to sidd211095 For This Useful Post: | ||




| The Following User Says Thank You to sidd211095 For This Useful Post: | ||
Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: harmattan-icons-pack-for-white-themes 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Inst harmattan-icons-pack-for-white-themes (1-01.1.2 Extras-devel:2.0/fremantle) Conf harmattan-icons-pack-for-white-themes (1-01.1.2 Extras-devel:2.0/fremantle) --- 2012-02-14 22:44:49 --- /usr/bin/apt-get -qy --allow-unauthenticated -o DPkg::options::=--force-confnew -o Dir::Etc::sourcelist=/opt/fapman-cache/sources.list -o Dir::State::lists=/opt/fapman-cache/lists -o Dir::Etc::sourceparts="" --auto-remove install harmattan-icons-pack-for-white-themes Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: harmattan-icons-pack-for-white-themes 0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded. Need to get 0B/27.6MB of archives. After this operation, 36.5MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! harmattan-icons-pack-for-white-themes Authentication warning overridden. Selecting previously deselected package harmattan-icons-pack-for-white-themes. (Reading database ... 24007 files and directories currently installed.) Unpacking harmattan-icons-pack-for-white-themes (from .../harmattan-icons-pack-for-white-themes_1-01.1.2_armel.deb) ... Setting up harmattan-icons-pack-for-white-themes (1-01.1.2) ... /var/lib/dpkg/info/harmattan-icons-pack-for-white-themes.postinst: line 2: p.xsbc_bugtracker=http://bugs.maemo.org: not found dpkg: error processing harmattan-icons-pack-for-white-themes (--configure): subprocess post-installation script returned error exit status 127 Errors were encountered while processing: harmattan-icons-pack-for-white-themes E: Sub-process /usr/bin/dpkg returned an error code (1)
p.xsbc_bugtracker="http://bugs.maemo.org"to
#p.xsbc_bugtracker="http://bugs.maemo.org"Then, open xterm and always as root run apt-get install -f
#!/usr/bin/python2.5
# -*- coding: utf-8 -*-
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published
## by the Free Software Foundation; version 2 only.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
import py2deb
import os
if __name__ == "__main__":
try:
os.chdir(os.path.dirname(sys.argv[0]))
except:
pass
print
p=py2deb.Py2deb("harmattan-icons-pack-for-white-themes")
p.description="White Harmattan icons pack for n900.\n Thanks to TransTech"
p.author="Sid Austin"
p.mail="sidd211095@gmail.com"
p.depends = "gtk2-engines-sapwood,hildon-theme-cacher,theme-customizer"
# Edit this based on your import statements (for example, you probably will not need pygame)
p.section="user/desktop"
p.icon = "/home/user/build/theme.png"
p.arch="armel"
p.urgency="low"
p.distribution="fremantle"
p.repository="extras-devel"
p.postinstall="""#! /bin/sh -e
p.xsbc_bugtracker="http://bugs.maemo.org"
optify () {
f="$1"
if [ ! -h "/$f" ]; then
# This is not atomic, but re-startable: if interrupted, doing
# this again will eventually finish with the correct result.
#
# XXX - At least that's the idea, but tar needs to be properly
# instructed to overwrite the targets.
echo >&2 "Optifying $f -> /opt/maemo/$f"
if [ -d "/$f" ]; then
(cd "/" && tar cf - "$f") | (cd "/opt/maemo/" && tar xf -)
fi
mv "/$f" "/$f.removed"
ln -s "/opt/maemo/$f" "/$f"
fi
if [ -e "/$f.removed" ]; then
rm -rf "/$f.removed"
fi
}
"""
#p.postremove=
#p.preinstall="""#!/bin/sh
#p.preremove="""#!/bin/sh
version = "1"
build = "01.1.2"
changeloginformation = "Minor tweaks"
dir_name = "src"
for root, dirs, files in os.walk(dir_name):
real_dir = "/" + root[len(dir_name):]
fake_file = []
for f in files:
fake_file.append(root + os.sep + f + "|" + f)
if len(fake_file) > 0:
p[real_dir] = fake_file
print p
r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)