Skip to content

Commit dbe742a

Browse files
committed
Bumping the version. Removing client code from server DEB.
Also fixing a minor bug in OnlineNotification flow arguments to support usernames with '@' character in them.
1 parent faf8f72 commit dbe742a

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

debian/rules

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ override_dh_virtualenv:
6767
--extra-pip-arg "--no-index" \
6868
--extra-pip-arg "--find-links=${LOCAL_DEB_PYINDEX}" \
6969
--extra-pip-arg "${LOCAL_DEB_PYINDEX}/${API_SDIST}" \
70-
--extra-pip-arg "${LOCAL_DEB_PYINDEX}/${TEST_SDIST}" \
71-
--extra-pip-arg "${LOCAL_DEB_PYINDEX}/${CLIENT_SDIST}" \
7270
--extra-pip-arg "${LOCAL_DEB_PYINDEX}/${TEMPLATES_SDIST}" \
7371
--extra-pip-arg "${LOCAL_DEB_PYINDEX}/${SERVER_SDIST}" \
7472
--no-test

grr/config/grr-response-server/setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ def make_release_tree(self, base_dir, files):
6262
cmdclass={"sdist": Sdist},
6363
entry_points={
6464
"console_scripts": [
65-
"grr_api_shell = grr.gui.api_client.api_shell:main",
6665
"grr_console = grr.server.distro_entry:Console",
6766
"grr_config_updater = grr.server.distro_entry:ConfigUpdater",
6867
"grr_frontend = grr.server.distro_entry:GrrFrontend",

grr/server/flows/general/administrative.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,15 @@ class OnlineNotification(flow.GRRFlow):
430430

431431
@classmethod
432432
def GetDefaultArgs(cls, username=None):
433-
return cls.args_type(
434-
email="%s@%s" % (username, config.CONFIG.Get("Logging.domain")))
433+
args = cls.args_type()
434+
try:
435+
args.email = "%s@%s" % (username, config.CONFIG.Get("Logging.domain"))
436+
except ValueError:
437+
# Just set no default if the email is not well-formed. Example: when
438+
# username contains '@' character.
439+
pass
440+
441+
return args
435442

436443
@flow.StateHandler()
437444
def Start(self):

scripts/install_server_from_src.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ done
7474
mkdir -p "$INSTALL_PREFIX/usr/bin/"
7575

7676
LAUNCHER="$SRC_DIR/scripts/debian_launcher"
77+
$INSTALL_CMD $LAUNCHER "$INSTALL_PREFIX/usr/bin/grr_api_shell"
7778
$INSTALL_CMD $LAUNCHER "$INSTALL_PREFIX/usr/bin/grr_config_updater"
7879
$INSTALL_CMD $LAUNCHER "$INSTALL_PREFIX/usr/bin/grr_console"
7980
$INSTALL_CMD $LAUNCHER "$INSTALL_PREFIX/usr/bin/grr_server"

version.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
major = 3
44
minor = 2
55
revision = 1
6-
release = 0
6+
release = 1
77

88
packageversion = %(major)s.%(minor)s.%(revision)spost%(release)s
99
packagedepends = %(major)s.%(minor)s.*

0 commit comments

Comments
 (0)