Kaydet (Commit) db2b604f authored tarafından Your Name's avatar Your Name

fix 1

üst d3931651
DESTDIR=/
all: clean build
build: buildmo
mkdir -p build/usr/lib/ || true
cp -prfv live-installer build/usr/lib/
#set parmissions
chmod 755 -R build
chown root -R build
buildmo:
mkdir -p build/usr/share/ || true
@echo "Building the mo files"
# WARNING: the second sed below will only works correctly with the languages that don't contain "-"
for file in `ls po/*.po`; do \
lang=`echo $$file | sed 's@po/@@' | sed 's/\.po//' | sed 's/live-installer-//'`; \
install -d build/usr/share/live-installer/locale/$$lang/LC_MESSAGES/; \
msgfmt -o build/usr/share/live-installer/locale/$$lang/LC_MESSAGES/live-installer.mo $$file; \
done \
install:
cp -prfv build/* $(DESTDIR)/
uninstall:
rm -rf $(DESTDIR)//usr/lib/live-installer
clean:
rm -rf build
......@@ -23,7 +23,7 @@ class InstallerEngine:
#sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
# find the squashfs..
self.media = '/run/live/medium/live/filesystem.squashfs'
self.media = '/dev/loop0'
if(not os.path.exists(self.media)):
print("Critical Error: Live medium (%s) not found!" % self.media)
#sys.exit(1)
......
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