Skip to content

Commit d9e72a3

Browse files
committed
[FIX] Package: Debian, Windows: more odooification; Debian: correct Packages.gz
1 parent ccc3e7f commit d9e72a3

File tree

7 files changed

+70
-50
lines changed

7 files changed

+70
-50
lines changed

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
odoo (8.0.0) stable; urgency=low
2+
3+
* Renamed package
4+
5+
-- Simon Lejeune <[email protected]> Wed, 17 Sep 2014 15:40:00 +0100
6+
17
openerp (8.0.0~rc1-0) testing; urgency=low
28

39
* Refactored packaging

debian/control

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
Source: openerp
1+
Source: odoo
22
Section: net
33
Priority: optional
4-
Maintainer: Odoo SA <[email protected]>
4+
Maintainer: OpenERP SA <[email protected]>
55
Build-Depends: debhelper (>= 9.0), python, rsync
66
Standards-Version: 3.9.5.0
77
Homepage: http://www.odoo.com/
88
Vcs-Git: https://github.com/odoo/odoo
99

10-
Package: openerp
10+
Package: odoo
1111
Section: net
1212
Architecture: all
1313
Depends:
@@ -45,8 +45,8 @@ Depends:
4545
python-werkzeug,
4646
python-xlwt,
4747
python-yaml,
48-
Conflicts: tinyerp-server, openerp-server, openerp-web
49-
Replaces: tinyerp-server, openerp-server, openerp-web
48+
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
49+
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
5050
Recommends:
5151
antiword,
5252
graphviz,

debian/copyright

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Upstream-Contact: OpenERP <[email protected]>
1+
Upstream-Contact: Odoo <[email protected]>
22
Upstream-Homepage: http://www.odoo.com/
3-
Maintainer-Contact: Debian OpenERP Maintainers <[email protected]>
3+
Maintainer-Contact: Debian Odoo Maintainers <[email protected]>
44
Maintainer-Homepage: http://www.odoo.com/
55

66
Files: *

debian/init

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
1515
DAEMON=/usr/bin/openerp-server
16-
NAME=openerp
17-
DESC=openerp
16+
NAME=odoo
17+
DESC=odoo
1818
CONFIG=/etc/odoo/openerp-server.conf
19-
LOGFILE=/var/log/odoo/openerp-server.log
19+
LOGFILE=/var/log/odoo/odoo-server.log
2020
PIDFILE=/var/run/${NAME}.pid
2121
USER=odoo
2222
export LOGNAME=$USER

openerp/release.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151
author_email = '[email protected]'
5252
license = 'AGPL-3'
5353

54-
nt_service_name = "openerp-server-" + series
54+
nt_service_name = "odoo-server-" + series
5555

5656
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

setup/package.py

+28-14
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
import pexpect
2626
import shutil
2727
import signal
28+
import subprocess
29+
import tempfile
2830
import time
2931
import xmlrpclib
3032
from contextlib import contextmanager
3133
from glob import glob
3234
from os.path import abspath, dirname, join
33-
from subprocess import check_output
3435
from tempfile import NamedTemporaryFile
3536

3637

@@ -73,9 +74,18 @@ def _rpc_count_modules(addr='http://127.0.0.1', port=8069, dbname='mycompany'):
7374
modules = xmlrpclib.ServerProxy('%s:%s/xmlrpc/object' % (addr, port)).execute(
7475
dbname, 1, 'admin', 'ir.module.module', 'search', [('state', '=', 'installed')]
7576
)
76-
if modules:
77-
print("Package test: successfuly installed %s modules" % len(modules))
77+
if modules and len(modules) > 1:
78+
time.sleep(1)
79+
toinstallmodules = xmlrpclib.ServerProxy('%s:%s/xmlrpc/object' % (addr, port)).execute(
80+
dbname, 1, 'admin', 'ir.module.module', 'search', [('state', '=', 'to install')]
81+
)
82+
if toinstallmodules:
83+
print("Package test: FAILED. Not able to install dependencies of base.")
84+
raise Exception("Installation of package failed")
85+
else:
86+
print("Package test: successfuly installed %s modules" % len(modules))
7887
else:
88+
print("Package test: FAILED. Not able to install base.")
7989
raise Exception("Installation of package failed")
8090

8191
def publish(o, releases):
@@ -90,6 +100,12 @@ def _publish(o, release):
90100
system('mkdir -p %s' % join(o.pub, release_dir))
91101
shutil.move(join(o.build_dir, release), release_path)
92102

103+
if release_extension == 'deb':
104+
temp_path = tempfile.mkdtemp(suffix='debPackages')
105+
system(['cp', release_path, temp_path])
106+
subprocess.Popen('dpkg-scanpackages . /dev/null | gzip -9c > %s' % join(o.pub, 'deb', 'Packages.gz'), shell=True, cwd=temp_path)
107+
shutil.rmtree(temp_path)
108+
93109
# Latest/symlink handler
94110
release_abspath = abspath(release_path)
95111
latest_abspath = release_abspath.replace(timestamp, 'latest')
@@ -127,7 +143,7 @@ def start(self, docker_image, build_dir, pub_dir):
127143
)
128144
time.sleep(2) # let the bash start
129145
self.docker.logfile_read = self.log_file
130-
self.id = check_output('docker ps -l -q', shell=True)
146+
self.id = subprocess.check_output('docker ps -l -q', shell=True)
131147

132148
def end(self):
133149
try:
@@ -219,9 +235,9 @@ def run(self):
219235

220236
self.rsync('"%s" %[email protected]:' % (setuppath, self.login))
221237
self.ssh("TEMP=/tmp ./%s /S" % setupfile)
222-
self.ssh('PGPASSWORD=openpgpwd /cygdrive/c/"Program Files"/"OpenERP %s"/PostgreSQL/bin/createdb.exe -e -U openpg mycompany' % setupversion)
223-
self.ssh('/cygdrive/c/"Program Files"/"OpenERP %s"/server/openerp-server.exe -d mycompany -i base --stop-after-init' % setupversion)
224-
self.ssh(['/cygdrive/c/"Program Files"/"OpenERP %s"/server/openerp-server.exe -d mycompany &' % setupversion, '&'])
238+
self.ssh('PGPASSWORD=openpgpwd /cygdrive/c/"Program Files"/"Odoo %s"/PostgreSQL/bin/createdb.exe -e -U openpg mycompany' % setupversion)
239+
self.ssh('/cygdrive/c/"Program Files"/"Odoo %s"/server/openerp-server.exe -d mycompany -i base --stop-after-init' % setupversion)
240+
self.ssh('net start odoo-server-8.0')
225241
_rpc_count_modules(port=18069)
226242

227243
#----------------------------------------------------------
@@ -239,10 +255,10 @@ def build_tgz(o):
239255

240256
def build_deb(o):
241257
system(['dpkg-buildpackage', '-rfakeroot', '-uc', '-us'], o.build_dir)
242-
system(['cp', glob('%s/../openerp_*.deb' % o.build_dir)[0], '%s/odoo.deb' % o.build_dir])
243-
system(['cp', glob('%s/../openerp_*.dsc' % o.build_dir)[0], '%s/odoo.dsc' % o.build_dir])
244-
system(['cp', glob('%s/../openerp_*_amd64.changes' % o.build_dir)[0], '%s/odoo_amd64.changes' % o.build_dir])
245-
system(['cp', glob('%s/../openerp_*.tar.gz' % o.build_dir)[0], '%s/odoo.deb.tar.gz' % o.build_dir])
258+
system(['cp', glob('%s/../odoo_*.deb' % o.build_dir)[0], '%s/odoo.deb' % o.build_dir])
259+
system(['cp', glob('%s/../odoo_*.dsc' % o.build_dir)[0], '%s/odoo.dsc' % o.build_dir])
260+
system(['cp', glob('%s/../odoo_*_amd64.changes' % o.build_dir)[0], '%s/odoo_amd64.changes' % o.build_dir])
261+
system(['cp', glob('%s/../odoo_*.tar.gz' % o.build_dir)[0], '%s/odoo.deb.tar.gz' % o.build_dir])
246262

247263
def build_rpm(o):
248264
system(['python2', 'setup.py', '--quiet', 'bdist_rpm'], o.build_dir)
@@ -348,7 +364,6 @@ def options():
348364
def main():
349365
o = options()
350366
_prepare_build_dir(o)
351-
352367
try:
353368
if not o.no_tarball:
354369
build_tgz(o)
@@ -364,7 +379,6 @@ def main():
364379
try:
365380
test_deb(o)
366381
publish(o, ['odoo.deb', 'odoo.dsc', 'odoo_amd64.changes', 'odoo.deb.tar.gz'])
367-
system('dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz', join(o.pub, 'deb'))
368382
except Exception, e:
369383
print("Won't publish the deb release.\n Exception: %s" % str(e))
370384
if not o.no_rpm:
@@ -386,7 +400,7 @@ def main():
386400
except:
387401
pass
388402
finally:
389-
for leftover in glob('%s/../openerp_*' % o.build_dir):
403+
for leftover in glob('%s/../odoo_*' % o.build_dir):
390404
os.remove(leftover)
391405

392406
shutil.rmtree(o.build_dir)

setup/win32/setup.nsi

+25-25
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
!define PUBLISHER 'OpenERP S.A.'
6666

6767
!ifndef MAJOR_VERSION
68-
!define MAJOR_VERSION '7'
68+
!define MAJOR_VERSION '8'
6969
!endif
7070

7171
!ifndef MINOR_VERSION
@@ -81,14 +81,14 @@
8181
#!define VERSION "${MAJOR_VERSION}.${MINOR_VERSION}-r${REVISION_VERSION}"
8282
!endif
8383

84-
!define PRODUCT_NAME "OpenERP"
84+
!define PRODUCT_NAME "Odoo"
8585
!define DISPLAY_NAME "${PRODUCT_NAME} ${MAJOR_VERSION}.${MINOR_VERSION}"
8686

8787
!define REGISTRY_ROOT HKLM
8888
!define UNINSTALL_BASE_REGISTRY_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall"
8989
!define UNINSTALL_REGISTRY_KEY "${UNINSTALL_BASE_REGISTRY_KEY}\${DISPLAY_NAME}"
9090

91-
!define UNINSTALL_REGISTRY_KEY_SERVER "${UNINSTALL_BASE_REGISTRY_KEY}\OpenERP Server ${VERSION}"
91+
!define UNINSTALL_REGISTRY_KEY_SERVER "${UNINSTALL_BASE_REGISTRY_KEY}\Odoo Server ${VERSION}"
9292

9393
!define REGISTRY_KEY "Software\${DISPLAY_NAME}"
9494

@@ -106,7 +106,7 @@ ShowInstDetails show
106106

107107
XPStyle on
108108

109-
InstallDir "$PROGRAMFILES\OpenERP ${VERSION}"
109+
InstallDir "$PROGRAMFILES\Odoo ${VERSION}"
110110
InstallDirRegKey HKCU "${REGISTRY_KEY}" ""
111111

112112
BrandingText '${PRODUCT_NAME} ${VERSION}'
@@ -168,7 +168,7 @@ Page Custom ShowPostgreSQL LeavePostgreSQL
168168
!define MUI_FINISHPAGE_RUN_TEXT "$(DESC_FinishPageText)"
169169
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
170170
!define MUI_FINISHPAGE_LINK $(DESC_FinishPage_Link)
171-
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.openerp.com/contact"
171+
!define MUI_FINISHPAGE_LINK_LOCATION "https://www.odoo.com/page/contactus"
172172
!insertmacro MUI_PAGE_FINISH
173173

174174
!insertmacro MUI_UNPAGE_WELCOME
@@ -181,11 +181,11 @@ Page Custom ShowPostgreSQL LeavePostgreSQL
181181
!insertmacro MUI_RESERVEFILE_LANGDLL
182182

183183
; English
184-
LangString DESC_OpenERP_Server ${LANG_ENGLISH} "Install the OpenERP Server with all the OpenERP standard modules."
185-
LangString DESC_PostgreSQL ${LANG_ENGLISH} "Install the PostgreSQL RDBMS used by OpenERP."
186-
LangString DESC_FinishPage_Link ${LANG_ENGLISH} "Contact OpenERP for Partnership and/or Support"
184+
LangString DESC_OpenERP_Server ${LANG_ENGLISH} "Install the Odoo Server with all the Odoo standard modules."
185+
LangString DESC_PostgreSQL ${LANG_ENGLISH} "Install the PostgreSQL RDBMS used by Odoo."
186+
LangString DESC_FinishPage_Link ${LANG_ENGLISH} "Contact Odoo for Partnership and/or Support"
187187
LangString DESC_AtLeastOneComponent ${LANG_ENGLISH} "You have to choose at least one component"
188-
LangString DESC_CanNotInstallPostgreSQL ${LANG_ENGLISH} "You can not install the PostgreSQL database without the OpenERP Server"
188+
LangString DESC_CanNotInstallPostgreSQL ${LANG_ENGLISH} "You can not install the PostgreSQL database without the Odoo Server"
189189
LangString WARNING_HostNameIsEmpty ${LANG_ENGLISH} "The hostname for the connection to the PostgreSQL Server is empty"
190190
LangString WARNING_UserNameIsEmpty ${LANG_ENGLISH} "The username for the connection to the PostgreSQL Server is empty"
191191
LangString WARNING_PasswordIsEmpty ${LANG_ENGLISH} "The password for the connection to the PostgreSQL Server is empty"
@@ -197,16 +197,16 @@ LangString DESC_PostgreSQL_Username ${LANG_ENGLISH} "Username"
197197
LangString DESC_PostgreSQL_Password ${LANG_ENGLISH} "Password"
198198
LangString Profile_AllInOne ${LANG_ENGLISH} "All In One"
199199
LangString Profile_Server ${LANG_ENGLISH} "Server only"
200-
LangString TITLE_OpenERP_Server ${LANG_ENGLISH} "OpenERP Server"
200+
LangString TITLE_OpenERP_Server ${LANG_ENGLISH} "Odoo Server"
201201
LangString TITLE_PostgreSQL ${LANG_ENGLISH} "PostgreSQL Database"
202-
LangString DESC_FinishPageText ${LANG_ENGLISH} "Start OpenERP"
202+
LangString DESC_FinishPageText ${LANG_ENGLISH} "Start Odoo"
203203

204204
; French
205-
LangString DESC_OpenERP_Server ${LANG_FRENCH} "Installation du Serveur OpenERP avec tous les modules OpenERP standards."
206-
LangString DESC_PostgreSQL ${LANG_FRENCH} "Installation de la base de donn?es PostgreSQL utilis?e par OpenERP."
207-
LangString DESC_FinishPage_Link ${LANG_FRENCH} "Contactez OpenERP pour un Partenariat et/ou du Support"
205+
LangString DESC_OpenERP_Server ${LANG_FRENCH} "Installation du Serveur Odoo avec tous les modules Odoo standards."
206+
LangString DESC_PostgreSQL ${LANG_FRENCH} "Installation de la base de donn?es PostgreSQL utilis?e par Odoo."
207+
LangString DESC_FinishPage_Link ${LANG_FRENCH} "Contactez Odoo pour un Partenariat et/ou du Support"
208208
LangString DESC_AtLeastOneComponent ${LANG_FRENCH} "Vous devez choisir au moins un composant"
209-
LangString DESC_CanNotInstallPostgreSQL ${LANG_FRENCH} "Vous ne pouvez pas installer la base de donn?es PostgreSQL sans le serveur OpenERP"
209+
LangString DESC_CanNotInstallPostgreSQL ${LANG_FRENCH} "Vous ne pouvez pas installer la base de donn?es PostgreSQL sans le serveur Odoo"
210210
LangString WARNING_HostNameIsEmpty ${LANG_FRENCH} "L'adresse pour la connection au serveur PostgreSQL est vide"
211211
LangString WARNING_UserNameIsEmpty ${LANG_FRENCH} "Le nom d'utilisateur pour la connection au serveur PostgreSQL est vide"
212212
LangString WARNING_PasswordIsEmpty ${LANG_FRENCH} "Le mot de passe pour la connection au serveur PostgreSQL est vide"
@@ -218,9 +218,9 @@ LangString DESC_PostgreSQL_Username ${LANG_FRENCH} "Utilisateur"
218218
LangString DESC_PostgreSQL_Password ${LANG_FRENCH} "Mot de passe"
219219
LangString Profile_AllInOne ${LANG_FRENCH} "All In One"
220220
LangString Profile_Server ${LANG_FRENCH} "Seulement le serveur"
221-
LangString TITLE_OpenERP_Server ${LANG_FRENCH} "Serveur OpenERP"
221+
LangString TITLE_OpenERP_Server ${LANG_FRENCH} "Serveur Odoo"
222222
LangString TITLE_PostgreSQL ${LANG_FRENCH} "Installation du serveur de base de donn?es PostgreSQL"
223-
LangString DESC_FinishPageText ${LANG_FRENCH} "Démarrer OpenERP"
223+
LangString DESC_FinishPageText ${LANG_FRENCH} "Démarrer Odoo"
224224

225225
InstType $(Profile_AllInOne)
226226
InstType $(Profile_Server)
@@ -256,10 +256,10 @@ Section $(TITLE_OpenERP_Server) SectionOpenERP_Server
256256
nsExec::Exec '"$INSTDIR\service\win32_service.exe" -auto -install'
257257

258258
# TODO: don't hardcode the service name
259-
nsExec::Exec "net stop openerp-server-8.0"
259+
nsExec::Exec "net stop odoo-server-8.0"
260260
sleep 2
261261

262-
nsExec::Exec "net start openerp-server-8.0"
262+
nsExec::Exec "net start odoo-server-8.0"
263263
sleep 2
264264

265265
SectionEnd
@@ -282,7 +282,7 @@ Section $(TITLE_PostgreSQL) SectionPostgreSQL
282282
--mode unattended \
283283
--prefix "$INSTDIR\PostgreSQL" \
284284
--datadir "$INSTDIR\PostgreSQL\data" \
285-
--servicename "PostgreSQL_For_OpenERP" \
285+
--servicename "PostgreSQL_For_Odoo" \
286286
--serviceaccount "openpgsvc" --servicepassword "0p3npgsvcPWD" \
287287
--superaccount "$TextPostgreSQLUsername" --superpassword "$TextPostgreSQLPassword" \
288288
--serverport $TextPostgreSQLPort'
@@ -297,10 +297,10 @@ Section -Post
297297
; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "Version" "${VERSION}"
298298
; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMajor" "${MAJOR_VERSION}.${MINOR_VERSION}"
299299
; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMinor" "${REVISION_VERSION}"
300-
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com"
300+
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@odoo.com"
301301
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00"
302-
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com"
303-
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com"
302+
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "https://www.odoo.com"
303+
WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@odoo.com"
304304
WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoModify" "1"
305305
WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoRepair" "1"
306306
WriteUninstaller "$INSTDIR\Uninstall.exe"
@@ -318,8 +318,8 @@ Section "Uninstall"
318318
ReadRegStr $0 HKLM "${UNINSTALL_REGISTRY_KEY_SERVER}" "UninstallString"
319319
ExecWait '"$0" /S'
320320

321-
nsExec::Exec "net stop openerp-server-8.0"
322-
nsExec::Exec "sc delete openerp-server-8.0"
321+
nsExec::Exec "net stop odoo-server-8.0"
322+
nsExec::Exec "sc delete odoo-server-8.0"
323323
sleep 2
324324

325325
Rmdir /r "$INSTDIR\server"

0 commit comments

Comments
 (0)