 pushPkgList = ->
   localPkgList = getLocalPkgList()
   remotePkgList = getRemotePkgList()
+	# Only push if local package list differs from remote package list
   if localPkgList.join(',') isnt remotePkgList.join(',')
     console.log('Pushing local package list to remote...')
     fs.writeFile(REMOTE_PKG_LIST_PATH, localPkgList.join('\n') + '\n')
-  else
-    console.log('Already up-to-date')
+
 
 # Initializes package sync within Atom
 initializePackageSync = ->


fs = require 'fs'
path = require 'path'
VIRTUAL_ENV_NAME = '.virtualenv'

LOCAL_PKG_DIR_PATH = atom.packages.getPackageDirPaths()[0]
REMOTE_PKG_LIST_PATH = fs.readlinkSync(
  path.join(path.dirname(LOCAL_PKG_DIR_PATH), 'packages.txt'))
PKG_SYNC_DELAY = 1000

# Activates Python virtualenv for this project directory if it exists
activateVirtualenv = ->

# Retrieves the list of all user-installed local packages
getLocalPkgList = ->
  pkgList = fs.readdirSync LOCAL_PKG_DIR_PATH
  return pkgList.filter (pkg) -> pkg.indexOf('.') == -1


# Retrueves the list of all synced packages
getRemotePkgList = ->
    pkgList = fs.readFileSync(REMOTE_PKG_LIST_PATH, 'utf8')
      .trimRight().split('\n')
    return pkgList


