Commit 46490929 authored by dmknght's avatar dmknght

Change version 2.1

parent c6fbd145
Pipeline #1439 canceled with stages
......@@ -3,4 +3,5 @@ all:
clean:
install:
nim c "src/goofileN.nim"
mkdir -p bin/
nim c --nimcache:/tmp --gc:arc --out:bin/goofileN -d:release "src/goofileN.nim"
goofile-nim (0.2.1) rolling-testing; urgency=medium
* Rebuild with Nim 1.4
* Add Nim build flags
* Fix Copyright template warn
-- Nong Hoang "dmknght" Tu <dmknght@parrotsec.org> Tue, 17 Nov 2020 00:44:34 +0700
goofile-nim (0.2.0) rolling-testing; urgency=medium
* Fix the 0 result bug
......
......@@ -29,12 +29,3 @@ License: MIT
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
#
# If you need, there are some extra license texts available in two places:
# /usr/share/debhelper/dh_make/licenses/
# /usr/share/common-licenses/
src/goofileN /usr/bin/
bin/goofileN /usr/bin/
parrot-goofile-nim.desktop /usr/share/applications/
# Package
version = "0.1.1"
version = "0.2.1"
author = "DmKnght"
description = "A folk version of goofile in Nim lang"
license = "MIT"
......@@ -11,4 +11,4 @@ bin = @["goofileN"]
# Dependencies
requires "nim >= 1.2.0"
requires "nim >= 1.4.0"
......@@ -9,4 +9,3 @@ Terminal=true
Type=Application
Categories=01-07-osint-analysis;
X-Parrot-Package=goofile-nim
......@@ -4,7 +4,7 @@ import xmltree
import asyncdispatch
from strutils import intToStr, repeat, split, startsWith, endsWith, replace, contains
from uri import encodeURL, decodeURL
from os import paramCount, paramStr, getCurrentDir, existsDir, createDir, getHomeDir
from os import paramCount, paramStr, getCurrentDir, dirExists, createDir, getHomeDir
type
DorkFile = ref object
......@@ -46,7 +46,7 @@ proc banner() =
#[
Print core banner of program
]#
echo "goofileN [0.2.0]: Filetype search with Google engine"
echo "goofileN [0.2.1]: Filetype search with Google engine"
echo "Developer: Nong Hoang \"DmKnght\" Tu"
echo "Homepage: https://nest.parrot.sh/packages/tools/goofilen"
......@@ -133,7 +133,7 @@ proc getResult(resp: AsyncResponse, ext: string) =
continue
try:
tmpCacheURL = urlResults[2].attr("href")
except IndexError:
except:
tmpCacheURL = "No web cache URL found"
try:
......@@ -204,7 +204,7 @@ proc handleOptions(options: Options) =
options.path &= "/"
if options.path != "":
if not existsDir(options.path):
if not dirExists(options.path):
try:
createDir(options.path)
except:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment